Exemple #1
0
        public override async Task <GrpcResponse> GetCustomer(GrpcRequest request, ServerCallContext context)
        {
            Console.WriteLine("GetCustomer Server Received " + request.Value);

            return(await Task.FromResult(new GrpcResponse
            {
                Value = request.Value
            }));
        }
Exemple #2
0
 public GrpcResponse(GrpcRequest request)
 {
     this.request          = request;
     this.OriginalResponse = request.Context;
     this.Headers          = new Dictionary <string, string>();
     this.Items            = new Dictionary <string, object>();
     Cookies           = new Cookies(this);
     this.OutputStream = Stream.Null;
 }
Exemple #3
0
 public async Task GrpcRequestResponse(GrpcRequest _sampleRequest)
 {
     await _client.GetCustomerAsync(_sampleRequest);
 }