Пример #1
0
 public override Task <EchoReply> Echo(EchoRequest request, ServerCallContext context)
 {
     return(Task.FromResult(new EchoReply
     {
         Payload = request.Payload
     }));
 }
 public EchoResponse Echo(EchoRequest request)
 {
     return(base.Channel.Echo(request));
 }
 public System.IAsyncResult BeginEcho(EchoRequest request, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginEcho(request, callback, asyncState));
 }
Пример #4
0
 public override Task <EchoReply> Echo(EchoRequest request, ServerCallContext context)
 {
     return(Task.FromResult(new EchoReply {
         Message = "Hi " + request.Name
     }));
 }