Esempio n. 1
0
 public void SendMessage(Message message)
 {
     foreach (var h in this.messageHandlers)
     {
         h.Invoke(message);
     }
 }
Esempio n. 2
0
 public async Task SendMessage(Message message)
 {
     Debug.Assert(this.Hub != null);
     await this.Hub.SendMessage(message);
     //logger.LogInformation($"Message {message.messageType} sent to {clients.Count} clients");
 }