예제 #1
0
        private void Handle(TaskCurrentStateUpdated evt)
        {
            ISchedulerTask task = Tasks.SingleOrDefault(t => t.Id == evt.TaskId);

            if (task != null)
            {
                task.Apply(evt);
            }
        }
예제 #2
0
 private void Handle(TaskCurrentStateUpdated evt)
 {
     this.CurrentState = evt.State;
 }