Пример #1
0
 public TokenCleanupBackgroundWorker(
     AbpTimer timer,
     IServiceScopeFactory serviceScopeFactory,
     IOptions <TokenCleanupOptions> options)
     : base(
         timer,
         serviceScopeFactory)
 {
     Options      = options.Value;
     timer.Period = Options.CleanupPeriod;
 }
Пример #2
0
 public TokenCleanupService(
     IPersistentGrantRepository persistentGrantRepository,
     IDeviceFlowCodesRepository deviceFlowCodesRepository,
     IClock clock,
     IOptions <TokenCleanupOptions> options)
 {
     PersistentGrantRepository = persistentGrantRepository;
     DeviceFlowCodesRepository = deviceFlowCodesRepository;
     Clock   = clock;
     Options = options.Value;
 }