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