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 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 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; }