public DatabaseInitializer(ApplicationDbContext context, IAccountManager accountManager, ILogger <DatabaseInitializer> logger, PersistedGrantDbContext persistedGrantDbContext,
                            ConfigurationDbContext configurationDbContext, ITimedTaskManager timedTaskManager)
 {
     timedTaskManager.Start();
     _accountManager          = accountManager;
     _context                 = context;
     _logger                  = logger;
     _persistedGrantDbContext = persistedGrantDbContext;
     _configurationDbContext  = configurationDbContext;
 }
 /// <summary>
 /// Sets the startup ITimedTaskManager
 /// </summary>
 /// <param name="timedTaskManager"></param>
 /// <returns></returns>
 public DefaultsExpression UseTimedTaskManager(ITimedTaskManager timedTaskManager)
 {
     TimedTaskManager = timedTaskManager ?? throw new ArgumentNullException(nameof(timedTaskManager));
     return(this);
 }