예제 #1
0
 public void SendMessage(Message message)
 {
     foreach (var h in this.messageHandlers)
     {
         h.Invoke(message);
     }
 }
예제 #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");
 }