private async Task <CreateSessionResponse> CreateSessionAsyncInternalAsync( Context context, string name, string cacheName, ImplicitPin implicitPin) { CreateSessionResponse response = await RunClientActionAndThrowIfFailedAsync(context, async() => await _client.CreateSessionAsync( new CreateSessionRequest { CacheName = cacheName, SessionName = name, ImplicitPin = (int)implicitPin, TraceId = context.Id.ToString(), Capabilities = (int)_clientCapabilities })); return(response); }
/// <inheritdoc /> protected override AsyncUnaryCall <CreateSessionResponse> CreateSessionAsync(CreateSessionRequest createSessionRequest) { return(_client.CreateSessionAsync(createSessionRequest)); }