예제 #1
0
		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();
		}
예제 #2
0
        //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();
        }
예제 #3
0
 public WorkerNodeRepository(ManagerConfiguration managerConfiguration,
                             RetryPolicyProvider retryPolicyProvider)
 {
     _connectionString = managerConfiguration.ConnectionString;
     _retryPolicy      = retryPolicyProvider.GetPolicy();
 }
예제 #4
0
		public JobPurgeTimerFake(RetryPolicyProvider retryPolicyProvider, ManagerConfiguration managerConfiguration) : base(retryPolicyProvider, managerConfiguration)
		{
		}
예제 #5
0
		public WorkerNodeRepository(ManagerConfiguration managerConfiguration,
		                            RetryPolicyProvider retryPolicyProvider)
		{
			_connectionString = managerConfiguration.ConnectionString;
			_retryPolicy = retryPolicyProvider.GetPolicy();
		}