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 void RemoveStatusChangerListener(IStatusChanger changer) { m_StatusChangers.Remove(changer); }
/****************** * Status changers * ******************/ public void AddStatusChangerListener(IStatusChanger changer) { m_StatusChangers.Add(changer); }