コード例 #1
0
        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(() => { });
        }
コード例 #2
0
 public HttpResponseMessage PostStates(string serialNumber, [FromBody] StateNotification value)
 {
     Log.Trace(value);
     OemServerHub.State(value, serialNumber);
     return(Request.CreateResponse(HttpStatusCode.NoContent));
 }
コード例 #3
0
 public static void State(StateNotification state, string serialNumber)
 {
     MyHubContext.Clients.Group(serialNumber).StateNotificationResonse(state);
     Log.Hub($"State Notification Submitted to Group :: {serialNumber}");
 }
コード例 #4
0
 public HttpResponseMessage PostStates(string serialNumber, [FromBody] StateNotification state)
 {
     _logger.Trace(state.ToString());
     return(Request.CreateResponse(HttpStatusCode.NoContent));
 }