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