Example #1
0
 public SchedulerTask(Guid id, SchedulerTaskState currentState, SchedulerTaskState desiredState,
                      DateTimeOffset lockedUntil)
     : base(id)
 {
     this.CurrentState = currentState;
     this.DesiredState = desiredState;
     this.LockedUntil  = lockedUntil;
 }
Example #2
0
 public TaskAddedToJob(Guid jobID, Guid taskId, SchedulerTaskState currentState,
     SchedulerTaskState desiredState, DateTimeOffset lockedUntil)
 {
     this.JobId = jobID;
     this.TaskId = taskId;
     this.CurrentState = currentState;
     this.DesiredState = desiredState;
     this.LockedUntil = lockedUntil;
 }
Example #3
0
 public CreateTask(Guid id, int originalVersion, SchedulerTaskState currentState, SchedulerTaskState desiredState,
                   DateTimeOffset lockedUntil)
 {
     this.Id = id;
     this.OriginalVersion = originalVersion;
     this.CurrentState    = currentState;
     this.DesiredState    = desiredState;
     this.LockedUntil     = lockedUntil;
 }
Example #4
0
 public TaskAddedToJob(Guid jobID, Guid taskId, SchedulerTaskState currentState,
                       SchedulerTaskState desiredState, DateTimeOffset lockedUntil)
 {
     this.JobId        = jobID;
     this.TaskId       = taskId;
     this.CurrentState = currentState;
     this.DesiredState = desiredState;
     this.LockedUntil  = lockedUntil;
 }
Example #5
0
 public AddTaskToJob(int originalVersion, Guid jobID, Guid taskId, SchedulerTaskState currentState,
                     SchedulerTaskState desiredState, DateTimeOffset lockedUntil)
 {
     this.OriginalVersion = originalVersion;
     this.JobId           = jobID;
     this.TaskId          = taskId;
     this.CurrentState    = currentState;
     this.DesiredState    = desiredState;
     this.LockedUntil     = lockedUntil;
 }
Example #6
0
 public AddTaskToJob(int originalVersion, Guid jobID, Guid taskId, SchedulerTaskState currentState, 
     SchedulerTaskState desiredState, DateTimeOffset lockedUntil)
 {
     this.OriginalVersion = originalVersion;
     this.JobId = jobID;
     this.TaskId = taskId;
     this.CurrentState = currentState;
     this.DesiredState = desiredState;
     this.LockedUntil = lockedUntil;
 }
 public UpdateTaskCurrentState(Guid jobId, Guid taskId, SchedulerTaskState currentState)
 {
     this.JobId = jobId;
     this.TaskId = taskId;
     this.CurrentState = currentState;
 }
 public UpdateTaskCurrentState(Guid jobId, Guid taskId, SchedulerTaskState currentState)
 {
     this.JobId        = jobId;
     this.TaskId       = taskId;
     this.CurrentState = currentState;
 }
 public TaskDesiredStateUpdated(Guid taskId, SchedulerTaskState state)
 {
     this.TaskId = taskId;
     this.State = state;
 }
Example #10
0
 public void UpdateTaskCurrentState(Guid id, SchedulerTaskState state)
 {
     base.Apply(new TaskCurrentStateUpdated(id, state));
 }
Example #11
0
 public void UpdateDesiredState(Guid id, SchedulerTaskState state)
 {
     base.Apply(new TaskDesiredStateUpdated(id, state));
 }
Example #12
0
 public void AddTaskToJob(Guid taskId, SchedulerTaskState currentState,
     SchedulerTaskState desiredState, DateTimeOffset lockedUntil)
 {
     base.Apply(new TaskAddedToJob(this.Id, taskId, currentState, desiredState, lockedUntil));
 }
Example #13
0
 public void UpdateDesiredState(Guid id, SchedulerTaskState state)
 {
     base.Apply(new TaskDesiredStateUpdated(id, state));
 }
Example #14
0
 public void UpdateTaskCurrentState(Guid id, SchedulerTaskState state)
 {
     base.Apply(new TaskCurrentStateUpdated(id, state));
 }
Example #15
0
 public CreateSchedulerTask(Guid id, int originalVersion, SchedulerTaskState currentState,
                            SchedulerTaskState desiredState, DateTimeOffset lockedUntil, T content)
     : base(id, originalVersion, currentState, desiredState, lockedUntil)
 {
     this.Content = content;
 }
 public TaskDesiredStateUpdated(Guid taskId, SchedulerTaskState state)
 {
     this.TaskId = taskId;
     this.State  = state;
 }
Example #17
0
 public UpdateTaskDesiredState(Guid jobId, Guid taskId, SchedulerTaskState desiredState)
 {
     this.JobId        = jobId;
     this.TaskId       = taskId;
     this.DesiredState = desiredState;
 }
 public TaskCurrentStateUpdated(Guid taskId, SchedulerTaskState state)
 {
     this.TaskId = taskId;
     this.State = state;
 }
 public UpdateTaskDesiredState(Guid jobId, Guid taskId, SchedulerTaskState desiredState)
 {
     this.JobId = jobId;
     this.TaskId = taskId;
     this.DesiredState = desiredState;
 }
Example #20
0
 public void AddTaskToJob(Guid taskId, SchedulerTaskState currentState,
                          SchedulerTaskState desiredState, DateTimeOffset lockedUntil)
 {
     base.Apply(new TaskAddedToJob(this.Id, taskId, currentState, desiredState, lockedUntil));
 }
Example #21
0
 public TaskCurrentStateUpdated(Guid taskId, SchedulerTaskState state)
 {
     this.TaskId = taskId;
     this.State  = state;
 }