|
|
|
@ -29,10 +29,7 @@ namespace IoTCenter.Services
|
|
|
|
|
}
|
|
|
|
|
else if (message == "ApiCallback")
|
|
|
|
|
{
|
|
|
|
|
if (!string.IsNullOrEmpty(connectionId))
|
|
|
|
|
{
|
|
|
|
|
this.ServerToClient(connectionId, "ApiCallback", message);
|
|
|
|
|
}
|
|
|
|
|
this.ApiCallback(message, connectionId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -96,5 +93,13 @@ namespace IoTCenter.Services
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void ApiCallback(string message, string connectionId)
|
|
|
|
|
{
|
|
|
|
|
if (!string.IsNullOrEmpty(connectionId))
|
|
|
|
|
{
|
|
|
|
|
this.ServerToClient(connectionId, "ApiCallback", message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|