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