Exemple #1
0
        protected virtual void VolumeChangeNotify(int currentVolume)
        {
            RabbitMqService.VoulumeChange(currentVolume);

            var context = Microsoft.AspNet.SignalR.GlobalHost.ConnectionManager.GetHubContext <ServerHub>();

            if (context == null)
            {
                return;
            }

            context.Clients.All.volumeChange(currentVolume);
        }