Show / Hide Table of Contents

Class PhoenixClientManagerAdapter<TClient, TClientOptions>

The base Phoenix client manager adapter.

Inheritance
object
ClientManagerAdapterBase<IDevice, TClient>
PhoenixClientManagerAdapter<TClient, TClientOptions>
Implements
IPhoenixClientManagerAdapter<TClient>
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: Phoenix.ClientManager
Assembly: Phoenix.ClientManager.dll
Syntax
public sealed class PhoenixClientManagerAdapter<TClient, TClientOptions> : ClientManagerAdapterBase<IDevice, TClient>, IPhoenixClientManagerAdapter<TClient>, IClientManagerAdapter<IDevice, TClient> where TClient : class, IGameConnect
Type Parameters
Name Description
TClient

The client to use.

TClientOptions

The configuration options for the channel.

Remarks

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

Constructors

View Source

PhoenixClientManagerAdapter(IClientFactory<TClient, TClientOptions>, IPhoenixLogger, IPhoenixClientManagerAdapterConfig<TClientOptions>)

The base Phoenix client manager adapter.

Declaration
public PhoenixClientManagerAdapter(IClientFactory<TClient, TClientOptions> clientFactory, IPhoenixLogger logger, IPhoenixClientManagerAdapterConfig<TClientOptions> config)
Parameters
Type Name Description
IClientFactory<TClient, TClientOptions> clientFactory

The factory to create clients.

IPhoenixLogger logger

The phoenix logger.

IPhoenixClientManagerAdapterConfig<TClientOptions> config

The configuration of PhoenixClientManagerAdapter<TClient, TClientOptions>.

Remarks

Initializes a new instance of the PhoenixClientManagerAdapter<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)
View Source

LogException(TClient?, Exception)

A log method used to log exceptions when connecting or disconnecting clients.

Declaration
public override void LogException(TClient? client, Exception e)
Parameters
Type Name Description
TClient client

The client that experienced the exception.

Exception e

The exception that was thrown.

Overrides
ClientManagerAdapterBase<IDevice, TClient>.LogException(TClient, Exception)
View Source

OptionsFor(IDevice)

Gets the connection options for a specific device.

Declaration
public object OptionsFor(IDevice device)
Parameters
Type Name Description
IDevice device

The device to get the options for.

Returns
Type Description
object

The connection options.

View Source

SetOptionsFor(IDevice, object)

Sets the options for a given device.

Declaration
public void SetOptionsFor(IDevice device, object options)
Parameters
Type Name Description
IDevice device

The device to set options for.

object options

The options to set.

Implements

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