Exemple #1
0
 public void Add(Message message)
 {
     MessagesList.Add(message);
     OnMessageStored?.Invoke(this, new MessageEventArgs(message));
 }
Exemple #2
0
 public void AddHandler(object sender, MessageEventArgs e)
 {
     MessagesList.Add(e.Message);
     OnMessageStored?.Invoke(this, new MessageEventArgs(e.Message));
 }