Пример #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 <Empty> SayHello(HelloRequest request, ServerCallContext context)
 {
     Console.WriteLine("Request name: " + request.Name);
     return(Task.FromResult(new Empty()));
 }