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 })); }
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; }
public async Task GrpcRequestResponse(GrpcRequest _sampleRequest) { await _client.GetCustomerAsync(_sampleRequest); }