public Dispatcher(IDependencyResolver dependencyResolver, IJobCoordinator jobCoordinator, IErrorHandlingPolicy errorHandlingPolicy, IMethodBinder methodBinder, IEventStream eventStream, IRecoverableAction recoverableAction, IStatusChanger statusChanger, IContinuationLiveness continuationLiveness, IExceptionFilterDispatcher exceptionFilterDispatcher, IJobRootValidator jobRootValidator) { if (jobCoordinator == null) throw new ArgumentNullException("jobCoordinator"); if (dependencyResolver == null) throw new ArgumentNullException("dependencyResolver"); if (errorHandlingPolicy == null) throw new ArgumentNullException("errorHandlingPolicy"); if (methodBinder == null) throw new ArgumentNullException("methodBinder"); if (eventStream == null) throw new ArgumentNullException("eventStream"); if (recoverableAction == null) throw new ArgumentNullException("recoverableAction"); if (statusChanger == null) throw new ArgumentNullException("statusChanger"); if (continuationLiveness == null) throw new ArgumentNullException("continuationLiveness"); if (exceptionFilterDispatcher == null) throw new ArgumentNullException("exceptionFilterDispatcher"); if (jobRootValidator == null) throw new ArgumentNullException("jobRootValidator"); _jobCoordinator = jobCoordinator; _dependencyResolver = dependencyResolver; _errorHandlingPolicy = errorHandlingPolicy; _methodBinder = methodBinder; _eventStream = eventStream; _recoverableAction = recoverableAction; _statusChanger = statusChanger; _continuationLiveness = continuationLiveness; _exceptionFilterDispatcher = exceptionFilterDispatcher; _jobRootValidator = jobRootValidator; }
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 JobManager(IEnumerable<IJob> jobs, IJobHost host, IJobCoordinator coordinator) { if (jobs == null) { throw new ArgumentNullException("jobs"); } if (host == null) { throw new ArgumentNullException("host"); } if (coordinator == null) { throw new ArgumentNullException("coordinator"); } _jobs = jobs; _scheduler = new Scheduler(jobs); _host = host; _coordinator = coordinator; _timer = new Timer(OnTimerElapsed); }
public JobManager(IEnumerable <IJob> jobs, IJobHost host, IJobCoordinator coordinator) { if (jobs == null) { throw new ArgumentNullException("jobs"); } if (host == null) { throw new ArgumentNullException("host"); } if (coordinator == null) { throw new ArgumentNullException("coordinator"); } _jobs = jobs; _scheduler = new Scheduler(jobs); _host = host; _coordinator = coordinator; _timer = new Timer(OnTimerElapsed); }
public CustomerJobManager(IList <IJob> jobs, IJobHost host, IJobCoordinator coordinator, TimeSpan startTimeSpan) { if (jobs == null) { throw new ArgumentNullException("jobs"); } if (host == null) { throw new ArgumentNullException("host"); } if (coordinator == null) { throw new ArgumentNullException("coordinator"); } _jobs = jobs; _scheduler = new Scheduler(jobs); _host = host; _coordinator = coordinator; _timer = new Timer(OnTimerElapsed); _starTimeSpan = startTimeSpan; }
public JobManager(IEnumerable<IJob> jobs, IJobHost host, IJobCoordinator coordinator, Action<string> logAction = null) { if (jobs == null) { throw new ArgumentNullException(nameof(jobs)); } if (host == null) { throw new ArgumentNullException(nameof(host)); } if (coordinator == null) { throw new ArgumentNullException(nameof(coordinator)); } _jobs = jobs; _scheduler = new Scheduler(jobs); _host = host; _coordinator = coordinator; _timer = new Timer(OnTimerElapsed); _logAction = logAction; }
public JobManager(IEnumerable <IJob> jobs, IJobHost host, IJobCoordinator coordinator, Action <string> logAction = null) { if (jobs == null) { throw new ArgumentNullException(nameof(jobs)); } if (host == null) { throw new ArgumentNullException(nameof(host)); } if (coordinator == null) { throw new ArgumentNullException(nameof(coordinator)); } _jobs = jobs; _scheduler = new Scheduler(jobs); _host = host; _coordinator = coordinator; _timer = new Timer(OnTimerElapsed); _logAction = logAction; }
public JobManager(IEnumerable<IJob> jobs, IJobCoordinator coordinator) : this(jobs, new JobHost(), coordinator) { }
public CustomerJobManager(IList <IJob> jobs, IJobCoordinator coordinator, TimeSpan startTimeSpan) : this(jobs, new JobHost(), coordinator, startTimeSpan) { }
public JobManager(IEnumerable <IJob> jobs, IJobCoordinator coordinator) : this(jobs, new JobHost(), coordinator) { }