Namespace: Daisi.SDK.Clients.V1.Orc
Inheritance: SessionsProto.SessionsProtoClient
SessionClientFactory - create a SessionClient using your IClientKeyProvider.
var sessionClientFactory = new SessionClientFactory(clientKeyProvider); var sessionClient = sessionClientFactory.Create();
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.
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