Пример #1
0
 public virtual void OnMessageReceived(IConnection connection, Message message)
 {
     if (MessageReceived != null)
     {
         MessageReceived(this, new MessageEventArgs(message));
     }
 }
Пример #2
0
 public void OnMessageReceived(IConnection connection, Message message)
 {
     if (MessageReceived != null)
     {
         MessageReceived(this, new MessageEventArgs(message));
     }
 }
Пример #3
0
 public void OnMessageRecipientAdding(IConnection connection, Message message, string recipient)
 {
 }
Пример #4
0
 public void OnMessageRecipientAdding(IConnection connection, Message message, string recipient)
 {
 }
Пример #5
0
 public MessageEventArgs(Message message)
 {
     Message = message;
 }
Пример #6
0
 public MessageViewModel(Message message)
 {
     Message = message;
 }
Пример #7
0
 public void AbortMessage()
 {
     CurrentMessage = null;
 }
Пример #8
0
        public void CommitMessage()
        {
            Message message = CurrentMessage;
            Session.Messages.Add(message);
            CurrentMessage = null;

            Server.Behaviour.OnMessageReceived(this, message);
        }
Пример #9
0
 public Message NewMessage()
 {
     CurrentMessage = new Message(Session);
     return CurrentMessage;
 }
Пример #10
0
 public void OnMessageReceived(IConnection connection, Message message)
 {
     MessageReceived?.Invoke(this, new MessageEventArgs(message));
 }