Exemplo n.º 1
0
 public void Reply(SentMessage message, [CanBeNull] ReceivedMessage receivedMessage, User.User user)
 {
     OnReply?.Invoke(user, new Tuple <SentMessage, ReceivedMessage>(message, receivedMessage));
     foreach (var messenger in _messengers)
     {
         messenger.Send(message, receivedMessage, user);
     }
 }
Exemplo n.º 2
0
 public void Reply(SentMessage message, [CanBeNull] RecivedMessage recievedMessage, User.User user)
 {
     Events.Message(user, message, recievedMessage);
     foreach (var messenger in _messengers)
     {
         messenger.Send(message, recievedMessage, user);
     }
 }