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