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