public JobPurgeTimer(RetryPolicyProvider retryPolicyProvider, ManagerConfiguration managerConfiguration) : base(managerConfiguration.PurgeJobsIntervalHours * 60 * 60 * 1000) { _managerConfiguration = managerConfiguration; _retryPolicy = retryPolicyProvider.GetPolicy(); _connectionString = managerConfiguration.ConnectionString; Elapsed += PurgeTimer_elapsed; }
public JobPurgeTimer(RetryPolicyProvider retryPolicyProvider, ManagerConfiguration managerConfiguration) : base(managerConfiguration.PurgeJobsIntervalHours*60*60*1000) { _managerConfiguration = managerConfiguration; _retryPolicy = retryPolicyProvider.GetPolicy(); _connectionString = managerConfiguration.ConnectionString; Elapsed += PurgeTimer_elapsed; Purge(); }
public JobRepositoryCommandExecuter(RetryPolicyProvider retryPolicyProvider, HalfNodesAffinityPolicy halfNodesAffinityPolicy) { _halfNodesAffinityPolicy = halfNodesAffinityPolicy; _retryPolicy = retryPolicyProvider.GetPolicy(); }