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); }