Change device refreshed notification for SignalR

This commit is contained in:
2015-01-17 08:38:48 -05:00
parent 7608922bd7
commit daf8de9fc8

View File

@@ -25,11 +25,11 @@ namespace WeatherService
#region Events #region Events
private void FireDeviceRefreshed(DeviceBase oDevice) private void FireDeviceRefreshed(DeviceBase device)
{ {
WeatherServiceDuplex.FireNotification(oDevice); WeatherServiceDuplex.FireNotification(device);
_hubContext.Clients.All.addMessage(oDevice.ToJson()); _hubContext.Clients.All.DeviceRefreshed(device);
} }
#endregion #endregion