コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BackgroundJobManager"/> class.
        /// </summary>
        public BackgroundJobManager(
            IIocResolver iocResolver,
            IBackgroundJobStore store,
            MajidTimer timer)
            : base(timer)
        {
            _store       = store;
            _iocResolver = iocResolver;

            EventBus = NullEventBus.Instance;

            Timer.Period = JobPollPeriod;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PeriodicBackgroundWorkerBase"/> class.
 /// </summary>
 /// <param name="timer">A timer.</param>
 protected PeriodicBackgroundWorkerBase(MajidTimer timer)
 {
     Timer          = timer;
     Timer.Elapsed += Timer_Elapsed;
 }