コード例 #1
0
 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!");
 }