public MakeInactiveUsersPassiveWorker(AbpTimer timer, IRepository<User, long> userRepository) : base(timer) { _userRepository = userRepository; Timer.Period = 5000; //5 seconds (good for tests, but normally will be more) }
/// <summary> /// Initializes a new instance of the <see cref="PeriodicBackgroundWorkerBase"/> class. /// </summary> /// <param name="timer">A timer.</param> protected PeriodicBackgroundWorkerBase(AbpTimer timer) { Timer = timer; Timer.Elapsed += Timer_Elapsed; }