Class DeviceConsoleServiceCollectionsExtensions
Extensions to add a client manager for Device Console devices and generic clients.
Inherited Members
Namespace: Microsoft.XboxStudios.DeviceConsole.ClientManager
Assembly: DeviceConsole.ClientManager.dll
Syntax
public static class DeviceConsoleServiceCollectionsExtensions
Methods
View SourceTryAddDeviceConsoleClientManager<TClient, TConfig, TClientOptions>(IServiceCollection, TConfig)
Adds a Device Console client manager, assuming another client manager is not already registered.
Declaration
public static IServiceCollection TryAddDeviceConsoleClientManager<TClient, TConfig, TClientOptions>(this IServiceCollection services, TConfig config) where TClient : class, IGameConnect where TConfig : IDeviceConsoleClientManagerAdapterConfig<TClientOptions>
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The services to configure. |
| TConfig | config | The Device Console client manager adapter configuration. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The configured services. |
Type Parameters
| Name | Description |
|---|---|
| TClient | The client that the client manager uses to establish connections. |
| TConfig | The type of configuration to use for the client manager adapter. |
| TClientOptions | The options to use to configure a client on creation. |