public JobRepository(ManagerConfiguration managerConfiguration, RetryPolicyProvider retryPolicyProvider, CreateSqlCommandHelper createSqlCommandHelper, IHttpSender httpSender) { if (retryPolicyProvider == null) { throw new ArgumentNullException("retryPolicyProvider"); } if (retryPolicyProvider.GetPolicy() == null) { throw new ArgumentNullException("retryPolicyProvider.GetPolicy"); } _connectionString = managerConfiguration.ConnectionString; _createSqlCommandHelper = createSqlCommandHelper; _httpSender = httpSender; _retryPolicy = retryPolicyProvider.GetPolicy(); }
//private static readonly ILog ManagerLogger = LogManager.GetLogger("Stardust.ManagerLog"); public JobRepository(ManagerConfiguration managerConfiguration, RetryPolicyProvider retryPolicyProvider, IHttpSender httpSender, JobRepositoryCommandExecuter jobRepositoryCommandExecuter, ILog managerLogger) { if (retryPolicyProvider == null) { throw new ArgumentNullException("retryPolicyProvider"); } if (retryPolicyProvider.GetPolicy() == null) { throw new ArgumentNullException("retryPolicyProvider.GetPolicy"); } _connectionString = managerConfiguration.ConnectionString; _httpSender = httpSender; _jobRepositoryCommandExecuter = jobRepositoryCommandExecuter; ManagerLogger = managerLogger; _retryPolicy = retryPolicyProvider.GetPolicy(); }
public WorkerNodeRepository(ManagerConfiguration managerConfiguration, RetryPolicyProvider retryPolicyProvider) { _connectionString = managerConfiguration.ConnectionString; _retryPolicy = retryPolicyProvider.GetPolicy(); }
public JobPurgeTimerFake(RetryPolicyProvider retryPolicyProvider, ManagerConfiguration managerConfiguration) : base(retryPolicyProvider, managerConfiguration) { }