Exemplo n.º 1
0
 public object Any(EchoRequest request)
 {
     ServerEvents.NotifyChannel("default-channel", "cmd.echo", request.ToEcho);
     return(new EchoResponse {
         Echoed = request.ToEcho
     });
 }
Exemplo n.º 2
0
 public override Task <EchoResponse> Echo(EchoRequest request, ServerCallContext context)
 {
     _logger.LogInformation("Information");
     return(Task.FromResult(new EchoResponse {
         Message = request.Message
     }));
 }