Merge branch 'develop' of https://bitbucket.org/ncarminati/cms_step into develop
This commit is contained in:
@@ -43,16 +43,21 @@ namespace Step.Listeners.SignalR
|
||||
|
||||
public static void SendNcNetworkStatus(object ncStatus)
|
||||
{
|
||||
if ((bool)ncStatus == false)
|
||||
var context = GlobalHost.ConnectionManager.GetHubContext<NcHub>();
|
||||
// Send data to clients
|
||||
context.Clients.Group("ncData").ncNetworkStatus(
|
||||
new
|
||||
{
|
||||
connected = ncStatus
|
||||
}
|
||||
);
|
||||
if( !(bool)ncStatus)
|
||||
{
|
||||
var context = GlobalHost.ConnectionManager.GetHubContext<NcHub>();
|
||||
// Send data to clients
|
||||
context.Clients.Group("ncData").ncNetworkStatus(
|
||||
new
|
||||
{
|
||||
connected = false
|
||||
}
|
||||
);
|
||||
LastAlarms = new DTOAlarmsModel();
|
||||
LastAxes = new DTOAxesModel();
|
||||
LastExpiredMaintenances = new List<DTOExpiredMaintenanceModel>(); ;
|
||||
LastPowerOnData = new DTOPowerOnDataModel();
|
||||
LastRuntimeFunctionality = new List<DTORuntimeFunctionalityModel>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user