PlanningPoker.Client
0.1.0
dotnet add package PlanningPoker.Client --version 0.1.0
NuGet\Install-Package PlanningPoker.Client -Version 0.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PlanningPoker.Client" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PlanningPoker.Client --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PlanningPoker.Client, 0.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PlanningPoker.Client as a Cake Addin #addin nuget:?package=PlanningPoker.Client&version=0.1.0 // Install PlanningPoker.Client as a Cake Tool #tool nuget:?package=PlanningPoker.Client&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Planning Poker dotnet Client Library
See the planning poker site here
Example Usage
Use AddPlanningPokerClient()
method to add dependencies into DI container:
var serviceProvider = new ServiceCollection()
.AddOptions()
.AddPlanningPokerClient()
.BuildServiceProvider();
In order to make a connection, use PlanningConnectionFactory
to create a new instace.
Start the connection by calling the Start()
method.
var connectionFactor = serviceProvider.GetService<IPlanningConnectionFactory>();
var connection = connectionFactor.NewConnection();
//Set up handling for events on the connection:
connection.OnSessionSuccesfullyCreated((sessionDetails) =>
{
Console.WriteLine($"SessionId: {sessionDetails.sessionId}");
Console.WriteLine($"UserId: {sessionDetails.userId}");
});
connection.OnSessionCreationFailed(() =>
{
Console.WriteLine("Failed to create session");
});
try
{
await connection.Start(CancellationToken.None);
await connection.CreateSession("Simon");
}
catch(InvalidOperationException ex)
{
//error creating session
}
Adding settings:
"PokerConnectionSettings": {
"PlanningSocketUri": "wss://planningpokercore.sicarrington.com/core/ws",
"PlanningApiUri": "https://planningpokerapi.sicarrington.com",
"ApiKey": "12345"
}
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
- Microsoft.AspNetCore.WebSockets (>= 2.2.1)
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.1)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
- Newtonsoft.Json (>= 13.0.2)
- System.Net.WebSockets.Client (>= 4.3.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.