Exemple #1
0
 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}"
     }));
 }
Exemple #2
0
        public void HandleSayRequest(SayRequest msg)
        {
            var response = new SayResponse
            {
                Username = msg.Username,
                Text     = msg.Text,
            };

            foreach (var client in _clients)
            {
                client.Tell(response, Self);
            }
        }
Exemple #3
0
 public void Handle(SayRequest message)
 {
     message.Username = this._nick;
     _server.Tell(message);
 }
 public void Handle(SayRequest message)
 {
     message.Username = this.clientName;
     _server.Tell(message);
 }
Exemple #5
0
        public override async Task <SayResponse> Say(SayRequest request, ServerCallContext context)
        {
            await _chatter.SayAsync(request.RoomId, context.GetUserName(), request.Message);

            return(new SayResponse());
        }
Exemple #6
0
 private void HandleSayRequest(SayRequest msg)
 {
     msg.Username = this._nick;
     _server.Tell(msg);
 }
Exemple #7
0
 public void Handle(SayRequest message)
 {
     message.Time     = sw.ElapsedMilliseconds;
     message.Username = this._nick;
     _server.Tell(message);
 }
Exemple #8
0
 public void Handle(SayRequest message)
 {
     _server.Tell(message);
 }