コード例 #1
0
        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);
        }