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