Show / Hide Table of Contents

Interface IGameConnect

Defines methods to connect to a game application.

Namespace: Microsoft.XboxStudios.ClientManager
Assembly: ClientManager.dll
Syntax
public interface IGameConnect

Properties

View Source

IsConnected

Gets a value indicating whether the client is connected or not.

Declaration
bool IsConnected { get; }
Property Value
Type Description
bool
View Source

IsConnecting

Gets a value indicating whether the client is connecting or not.

Declaration
bool IsConnecting { get; }
Property Value
Type Description
bool
View Source

Name

Gets or sets a name for the client to identify it in log messages.

Declaration
string Name { get; set; }
Property Value
Type Description
string

Methods

View Source

ConnectAsync(CancellationOptions?)

Connects to a game application.

Declaration
Task ConnectAsync(CancellationOptions? cancellationOptions = null)
Parameters
Type Name Description
CancellationOptions? cancellationOptions

The Microsoft.XboxStudios.Bifrost.CancellationOptions.

Returns
Type Description
Task

A Task that represents the asynchronous operation.

View Source

Disconnect()

Disconnects from a game application synchronously.

Declaration
void Disconnect()
View Source

DisconnectAsync()

Disconnects from a game application asynchronously.

Declaration
Task DisconnectAsync()
Returns
Type Description
Task

A Task that represents the asynchronous operation.

Events

View Source

ConnectionLostEvent

An event executed when a client loses connection.

Declaration
event EventHandler ConnectionLostEvent
Event Type
Type Description
EventHandler
  • View Source
In this article
Back to top Generated by DocFX