コード例 #1
0
 public MakeOvertimeOrdersDeletedBackgroundWorker(
     CommonOrderManager orderManager,
     InfrastructureTimer timer,
     IRepository <Order> orderRepository)
     : base(timer)
 {
     _orderManager    = orderManager;
     _orderRepository = orderRepository;
     Timer.Period     = 7200000;
 }
コード例 #2
0
ファイル: BackgroundJobManager.cs プロジェクト: llenroc/Movie
        /// <summary>
        /// Initializes a new instance of the <see cref="BackgroundJobManager"/> class.
        /// </summary>
        public BackgroundJobManager(
            IIocResolver iocResolver,
            IBackgroundJobStore store,
            InfrastructureTimer timer)
            : base(timer)
        {
            _store       = store;
            _iocResolver = iocResolver;

            Timer.Period = JobPollPeriod;
        }
コード例 #3
0
 public WithdrawFailedWithdrawBackgroundWorker(InfrastructureTimer timer, IRepository <WalletRecord> walletRecordRepository)
     : base(timer)
 {
     _walletRecordRepository = walletRecordRepository;
     Timer.Period            = 7200000;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PeriodicBackgroundWorkerBase"/> class.
 /// </summary>
 /// <param name="timer">A timer.</param>
 protected PeriodicBackgroundWorkerBase(InfrastructureTimer timer)
 {
     Timer          = timer;
     Timer.Elapsed += Timer_Elapsed;
 }