public override Task <EchoReply> Say(SayRequest request, ServerCallContext context) { logger.LogDebug("Recieved a new message"); return(Task.FromResult(new EchoReply { Message = $"you said: {request.Message}" })); }
public void HandleSayRequest(SayRequest msg) { var response = new SayResponse { Username = msg.Username, Text = msg.Text, }; foreach (var client in _clients) { client.Tell(response, Self); } }
public void Handle(SayRequest message) { message.Username = this._nick; _server.Tell(message); }
public void Handle(SayRequest message) { message.Username = this.clientName; _server.Tell(message); }
public override async Task <SayResponse> Say(SayRequest request, ServerCallContext context) { await _chatter.SayAsync(request.RoomId, context.GetUserName(), request.Message); return(new SayResponse()); }
private void HandleSayRequest(SayRequest msg) { msg.Username = this._nick; _server.Tell(msg); }
public void Handle(SayRequest message) { message.Time = sw.ElapsedMilliseconds; message.Username = this._nick; _server.Tell(message); }
public void Handle(SayRequest message) { _server.Tell(message); }