mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-02-15 10:58:35 -05:00
Change device refreshed notification for SignalR
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user