SessionClient

Namespace: Daisi.SDK.Clients.V1.Orc

Inheritance: SessionsProto.SessionsProtoClient

Factory

SessionClientFactory - create a SessionClient using your IClientKeyProvider.

var sessionClientFactory = new SessionClientFactory(clientKeyProvider);
var sessionClient = sessionClientFactory.Create();

Remarks

SessionClient is used to create sessions with the Orc service that can be used to contact Hosts. You will need an approved session whether you use Direct Connect (DC) or Fully Orchestrated Connect (FOC). The hosts will always validate the session before processing requests.

SessionClient Usage

Example for SessionClient:

// Assuming SessionClient setup
var sessionClientFactory = new SessionClientFactory(clientKeyProvider);
var sessionClient = sessionClientFactory.Create();

// Use sessionClient to manage sessions
var createSessionRequest = new CreateSessionRequest();
var sessionCreateResponse = await sessionClient.Create(createSessionRequest);

// Process sessionResponse

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.