Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BackgroundJobManager"/> class.
        /// </summary>
        public BackgroundJobManager(
            IServiceProvider serviceProvider,
            IBackgroundJobStore store,
            DomainTimer timer,
            IEventBus eventBus,
            ISerializer serializer,
            ILogger <BackgroundJobManager> logger)
            : base(timer, logger)
        {
            _store           = store;
            _eventBus        = eventBus;
            _serviceProvider = serviceProvider;
            _serializer      = serializer;
            _logger          = logger;

            Timer.Period = JobPollPeriod;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="PeriodicBackgroundWorkerBase"/> class.
 /// </summary>
 /// <param name="timer">A timer.</param>
 /// <param name="logger">A logger.</param>
 protected PeriodicBackgroundWorkerBase(DomainTimer timer, ILogger logger)
     : base(logger)
 {
     Timer          = timer;
     Timer.Elapsed += Timer_Elapsed;
 }