Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 /// <inheritdoc />
 protected override AsyncUnaryCall <CreateSessionResponse> CreateSessionAsync(CreateSessionRequest createSessionRequest)
 {
     return(_client.CreateSessionAsync(createSessionRequest));
 }