private void Handle(TaskCurrentStateUpdated evt) { ISchedulerTask task = Tasks.SingleOrDefault(t => t.Id == evt.TaskId); if (task != null) { task.Apply(evt); } }
private void Handle(TaskCurrentStateUpdated evt) { this.CurrentState = evt.State; }