public override Task <HelloReply> SayHello(HelloRequest request, ServerCallContext context) { return(Task.FromResult(new HelloReply { Message = "Hello " + request.Name })); }
public override Task <HelloReply> SayHelloThrow(HelloRequest request, ServerCallContext context) { throw new Exception("oh my, Derek said it would work!"); }