protected virtual void PushNotification(string message) { RabbitMqService.SendNotification(message); var context = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext <ServerHub>(); if (context == null) { return; } context.Clients.All.notification(message); }