Class GenericClientManagerServiceCollectionsExtensions
Extensions to add a client manager for generic keys and clients.
Inherited Members
Namespace: Microsoft.XboxStudios.ClientManager
Assembly: ClientManager.dll
Syntax
public static class GenericClientManagerServiceCollectionsExtensions
Methods
View SourceTryAddGenericClientManager<TKey, TClient>(IServiceCollection)
Adds a generic client manager, assuming another client manager is not already registered.
Declaration
public static IServiceCollection TryAddGenericClientManager<TKey, TClient>(this IServiceCollection services) where TKey : notnull where TClient : class, IGameConnect
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The services to configure. |
Returns
Type | Description |
---|---|
IServiceCollection | The configured services. |
Type Parameters
Name | Description |
---|---|
TKey | The key to use to identify a specific client. |
TClient | The client that the client manager uses to establish connections. |