Exemplo n.º 1
0
        public override async Task <GreetDeadlineResponse> GreetDeadline(GreetDeadlineRequest request, ServerCallContext context)
        {
            await Task.Delay(300);

            return(new GreetDeadlineResponse {
                Result = $"Hello {request.Name} from the Server"
            });
        }
 public override async Task<GreetDeadlineResponse> GreetWithDeadline(GreetDeadlineRequest request, ServerCallContext context)
 {
     await Task.Delay(300);
     return new GreetDeadlineResponse() { Result = $"hello {request.Greeting.FirstName} {request.Greeting.LastName}" };
 }