Exemple #1
0
        public bool SignalRTest(string param = null)
        {
            var context = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext <ServerHub>();

            if (context == null)
            {
                return(false);
            }

            RabbitMqService.Hello(param ?? "Call from server");
            context.Clients.All.hello(param ?? "Call from server");
            return(true);
        }