Show / Hide Table of Contents

Class DeviceConsoleClientManagerAdapter<TClient, TClientOptions>

A client manager adapter for generic clients and Device console devices.

Inheritance
object
ClientManagerAdapterBase<IDevice, TClient>
DeviceConsoleClientManagerAdapter<TClient, TClientOptions>
Implements
IClientManagerAdapter<IDevice, TClient>
Inherited Members
ClientManagerAdapterBase<IDevice, TClient>.ConnectAsync(TClient, CancellationOptions?)
ClientManagerAdapterBase<IDevice, TClient>.CreateFor(IDevice)
ClientManagerAdapterBase<IDevice, TClient>.Disconnect(TClient)
ClientManagerAdapterBase<IDevice, TClient>.DisconnectAsync(TClient)
ClientManagerAdapterBase<IDevice, TClient>.LogException(TClient, Exception)
ClientManagerAdapterBase<IDevice, TClient>.NeedsToConnect(TClient)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.DeviceConsole.ClientManager
Assembly: DeviceConsole.ClientManager.dll
Syntax
public sealed class DeviceConsoleClientManagerAdapter<TClient, TClientOptions> : ClientManagerAdapterBase<IDevice, TClient>, IClientManagerAdapter<IDevice, TClient> where TClient : class, IGameConnect
Type Parameters
Name Description
TClient

The generic client to use.

TClientOptions

The options to configure a generic client on creation.

Remarks

Initializes a new instance of the DeviceConsoleClientManagerAdapter<TClient, TClientOptions> class.

Constructors

View Source

DeviceConsoleClientManagerAdapter(IClientFactory<TClient, TClientOptions>, IDeviceConsoleClientManagerAdapterConfig<TClientOptions>, ILogger<DeviceConsoleClientManagerAdapter<TClient, TClientOptions>>)

A client manager adapter for generic clients and Device console devices.

Declaration
public DeviceConsoleClientManagerAdapter(IClientFactory<TClient, TClientOptions> clientFactory, IDeviceConsoleClientManagerAdapterConfig<TClientOptions> config, ILogger<DeviceConsoleClientManagerAdapter<TClient, TClientOptions>> logger)
Parameters
Type Name Description
IClientFactory<TClient, TClientOptions> clientFactory

The client factory.

IDeviceConsoleClientManagerAdapterConfig<TClientOptions> config

The configured options for this adapter.

ILogger<DeviceConsoleClientManagerAdapter<TClient, TClientOptions>> logger

The logger.

Remarks

Initializes a new instance of the DeviceConsoleClientManagerAdapter<TClient, TClientOptions> class.

Methods

View Source

CreateFor(IDevice)

Gets the client for a specific Microsoft.XboxStudios.DeviceConsole.IDevice.

Declaration
public override TClient? CreateFor(IDevice key)
Parameters
Type Name Description
IDevice key

The key to use.

Returns
Type Description
TClient

The client assosciated with the requested key.

Overrides
ClientManagerAdapterBase<IDevice, TClient>.CreateFor(IDevice)

Implements

IClientManagerAdapter<TKey, TClient>
  • View Source
In this article
Back to top Generated by DocFX