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