Interface IGameClient
An interface for implementing a Game Client class.
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public interface 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
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. |