Show / Hide Table of Contents

Class DeviceConsoleServiceCollectionsExtensions

Extensions to add a client manager for Device Console devices and generic clients.

Inheritance
object
DeviceConsoleServiceCollectionsExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.DeviceConsole.ClientManager
Assembly: DeviceConsole.ClientManager.dll
Syntax
public static class DeviceConsoleServiceCollectionsExtensions

Methods

View Source

TryAddDeviceConsoleClientManager<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.

  • View Source
In this article
Back to top Generated by DocFX