Class EmptyGameClient
Empty Game client for IConfigContainers that do not have game clients.
Implements
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public class EmptyGameClient : IGameClient
Methods
View SourceConnect(GameClientConnectionContext, CancellationToken)
Establishes a connection with the game client if it isn't already connected. If client is already connected it should just return true.
Declaration
public Task<bool> Connect(GameClientConnectionContext connectionContext, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
GameClientConnectionContext | connectionContext | The connection context containing the information needed to establish a connection. |
CancellationToken | cancellationToken | A cancellation token. |
Returns
Type | Description |
---|---|
Task<bool> | Return whether the Game Client is connected. |