public override Task <HelloReply> SayHello(HelloRequest request, ServerCallContext context) { return(Task.FromResult(new HelloReply { Message = "Hello " + request.Name })); }
public override Task <Empty> SayHello(HelloRequest request, ServerCallContext context) { Console.WriteLine("Request name: " + request.Name); return(Task.FromResult(new Empty())); }