public JobQueueFactory( IPersistenceStore persistenceStore, IDependableConfiguration configuration, IEventStream eventStream, IRecoverableAction recoverableAction, IJobMutator jobMutator) { if (persistenceStore == null) { throw new ArgumentNullException("persistenceStore"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } if (eventStream == null) { throw new ArgumentNullException("eventStream"); } if (recoverableAction == null) { throw new ArgumentNullException("recoverableAction"); } if (jobMutator == null) { throw new ArgumentNullException("JobMutator"); } _persistenceStore = persistenceStore; _configuration = configuration; _eventStream = eventStream; _recoverableAction = recoverableAction; _jobMutator = jobMutator; }
public ErrorHandlingPolicy(IDependableConfiguration configuration, IJobCoordinator jobCoordinator, IStatusChanger statusChanger, IFailedJobQueue failedJobQueue, IRecoverableAction recoverableAction) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (jobCoordinator == null) { throw new ArgumentNullException("jobCoordinator"); } if (statusChanger == null) { throw new ArgumentNullException("statusChanger"); } if (failedJobQueue == null) { throw new ArgumentNullException("failedJobQueue"); } if (recoverableAction == null) { throw new ArgumentNullException("recoverableAction"); } _configuration = configuration; _jobCoordinator = jobCoordinator; _statusChanger = statusChanger; _failedJobQueue = failedJobQueue; _recoverableAction = recoverableAction; }
public Scheduler( QueueConfiguration queueConfiguration, IDependableConfiguration configuration, IPersistenceStore persistenceStore, Func<DateTime> now, IFailedJobQueue failedJobQueue, IRecoverableAction recoverableAction, IJobRouter router, IActivityToContinuationConverter activityToContinuationConverter, IEnumerable<IJobPump> jobPumps, IJobMutator jobMutator) { if (queueConfiguration == null) throw new ArgumentNullException("queueConfiguration"); if (configuration == null) throw new ArgumentNullException("configuration"); if (persistenceStore == null) throw new ArgumentNullException("persistenceStore"); if (now == null) throw new ArgumentNullException("now"); if (failedJobQueue == null) throw new ArgumentNullException("failedJobQueue"); if (recoverableAction == null) throw new ArgumentNullException("recoverableAction"); if (router == null) throw new ArgumentNullException("router"); if (activityToContinuationConverter == null) throw new ArgumentNullException("activityToContinuationConverter"); if (jobPumps == null) throw new ArgumentNullException("jobPumps"); if (jobMutator == null) throw new ArgumentNullException("jobMutator"); _persistenceStore = persistenceStore; _now = now; _failedJobQueue = failedJobQueue; _recoverableAction = recoverableAction; _router = router; _activityToContinuationConverter = activityToContinuationConverter; _jobPumps = jobPumps; _jobMutator = jobMutator; }
public RecoverableAction(IDependableConfiguration configuration, IEventStream eventStream) { if (configuration == null) throw new ArgumentNullException("configuration"); if (eventStream == null) throw new ArgumentNullException("eventStream"); _configuration = configuration; _eventStream = eventStream; _timer = new Timer(OnTick); }
public FailedTransition(IDependableConfiguration configuration, IJobMutator jobMutator, Func<DateTime> now) { if (configuration == null) throw new ArgumentNullException("configuration"); if (jobMutator == null) throw new ArgumentNullException("JobMutator"); if (now == null) throw new ArgumentNullException("now"); _configuration = configuration; _jobMutator = jobMutator; _now = now; }
public RecoverableAction(IDependableConfiguration configuration, IEventStream eventStream) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (eventStream == null) { throw new ArgumentNullException("eventStream"); } _configuration = configuration; _eventStream = eventStream; _timer = new Timer(OnTick); }
public ErrorHandlingPolicy(IDependableConfiguration configuration, IJobCoordinator jobCoordinator, IStatusChanger statusChanger, IFailedJobQueue failedJobQueue, IRecoverableAction recoverableAction) { if(configuration == null) throw new ArgumentNullException("configuration"); if(jobCoordinator == null) throw new ArgumentNullException("jobCoordinator"); if(statusChanger == null) throw new ArgumentNullException("statusChanger"); if(failedJobQueue == null) throw new ArgumentNullException("failedJobQueue"); if (recoverableAction == null) throw new ArgumentNullException("recoverableAction"); _configuration = configuration; _jobCoordinator = jobCoordinator; _statusChanger = statusChanger; _failedJobQueue = failedJobQueue; _recoverableAction = recoverableAction; }
public JobQueueFactory( IPersistenceStore persistenceStore, IDependableConfiguration configuration, IEventStream eventStream, IRecoverableAction recoverableAction, IJobMutator jobMutator) { if (persistenceStore == null) throw new ArgumentNullException("persistenceStore"); if (configuration == null) throw new ArgumentNullException("configuration"); if (eventStream == null) throw new ArgumentNullException("eventStream"); if (recoverableAction == null) throw new ArgumentNullException("recoverableAction"); if (jobMutator == null) throw new ArgumentNullException("jobMutator"); _persistenceStore = persistenceStore; _configuration = configuration; _eventStream = eventStream; _recoverableAction = recoverableAction; _jobMutator = jobMutator; }
public FailedTransition(IDependableConfiguration configuration, IJobMutator jobMutator, Func <DateTime> now) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (jobMutator == null) { throw new ArgumentNullException("JobMutator"); } if (now == null) { throw new ArgumentNullException("now"); } _configuration = configuration; _jobMutator = jobMutator; _now = now; }
public FailedJobQueue( IDependableConfiguration configuration, IPersistenceStore persistenceStore, Func<DateTime> now, IEventStream eventStream, IJobRouter router) { if (configuration == null) throw new ArgumentNullException("configuration"); if (persistenceStore == null) throw new ArgumentNullException("persistenceStore"); if (now == null) throw new ArgumentNullException("now"); if(eventStream == null) throw new ArgumentNullException("eventStream"); if(router == null) throw new ArgumentNullException("router"); _configuration = configuration; _persistenceStore = persistenceStore; _now = now; _eventStream = eventStream; _router = router; _timer = new Timer(OnTick); }
public FailedJobQueue( IDependableConfiguration configuration, IPersistenceStore persistenceStore, Func <DateTime> now, IEventStream eventStream, IJobRouter router) { if (configuration == null) { throw new ArgumentNullException("configuration"); } if (persistenceStore == null) { throw new ArgumentNullException("persistenceStore"); } if (now == null) { throw new ArgumentNullException("now"); } if (eventStream == null) { throw new ArgumentNullException("eventStream"); } if (router == null) { throw new ArgumentNullException("router"); } _configuration = configuration; _persistenceStore = persistenceStore; _now = now; _eventStream = eventStream; _router = router; _timer = new Timer(OnTick); }
public Scheduler( QueueConfiguration queueConfiguration, IDependableConfiguration configuration, IPersistenceStore persistenceStore, Func <DateTime> now, IFailedJobQueue failedJobQueue, IRecoverableAction recoverableAction, IJobRouter router, IActivityToContinuationConverter activityToContinuationConverter, IEnumerable <IJobPump> jobPumps, IJobMutator jobMutator) { if (queueConfiguration == null) { throw new ArgumentNullException("queueConfiguration"); } if (configuration == null) { throw new ArgumentNullException("configuration"); } if (persistenceStore == null) { throw new ArgumentNullException("persistenceStore"); } if (now == null) { throw new ArgumentNullException("now"); } if (failedJobQueue == null) { throw new ArgumentNullException("failedJobQueue"); } if (recoverableAction == null) { throw new ArgumentNullException("recoverableAction"); } if (router == null) { throw new ArgumentNullException("router"); } if (activityToContinuationConverter == null) { throw new ArgumentNullException("activityToContinuationConverter"); } if (jobPumps == null) { throw new ArgumentNullException("jobPumps"); } if (jobMutator == null) { throw new ArgumentNullException("JobMutator"); } _persistenceStore = persistenceStore; _now = now; _failedJobQueue = failedJobQueue; _recoverableAction = recoverableAction; _router = router; _activityToContinuationConverter = activityToContinuationConverter; _jobPumps = jobPumps; _jobMutator = jobMutator; }