public TransformAPIModel(int size) { signals = new SignalsModel(size); transform = new TransformModel(new WindowsSetModel()); filter = new RectangleFilter(); ManageModel = new SignalsManageModel(); SignalsChanged = new StateNotification(() => Transform()); TransformChanged = new StateNotification(() => { }); }
public HttpResponseMessage PostStates(string serialNumber, [FromBody] StateNotification value) { Log.Trace(value); OemServerHub.State(value, serialNumber); return(Request.CreateResponse(HttpStatusCode.NoContent)); }
public static void State(StateNotification state, string serialNumber) { MyHubContext.Clients.Group(serialNumber).StateNotificationResonse(state); Log.Hub($"State Notification Submitted to Group :: {serialNumber}"); }
public HttpResponseMessage PostStates(string serialNumber, [FromBody] StateNotification state) { _logger.Trace(state.ToString()); return(Request.CreateResponse(HttpStatusCode.NoContent)); }