public TwoFactorLoginService(
     ITwoFactorLoginRepository twoFactorLoginRepository,
     ICoreScopeProvider scopeProvider,
     IEnumerable <ITwoFactorProvider> twoFactorSetupGenerators,
     IOptions <IdentityOptions> identityOptions,
     IOptions <BackOfficeIdentityOptions> backOfficeIdentityOptions)
     : this(twoFactorLoginRepository,
            scopeProvider,
            twoFactorSetupGenerators,
            identityOptions,
            backOfficeIdentityOptions,
            StaticServiceProvider.Instance.GetRequiredService <ILogger <TwoFactorLoginService> >())
 {
 }
Example #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="TwoFactorLoginService" /> class.
 /// </summary>
 public TwoFactorLoginService(
     ITwoFactorLoginRepository twoFactorLoginRepository,
     ICoreScopeProvider scopeProvider,
     IEnumerable <ITwoFactorProvider> twoFactorSetupGenerators,
     IOptions <IdentityOptions> identityOptions,
     IOptions <BackOfficeIdentityOptions> backOfficeIdentityOptions,
     ILogger <TwoFactorLoginService> logger)
 {
     _twoFactorLoginRepository  = twoFactorLoginRepository;
     _scopeProvider             = scopeProvider;
     _identityOptions           = identityOptions;
     _backOfficeIdentityOptions = backOfficeIdentityOptions;
     _logger = logger;
     _twoFactorSetupGenerators = twoFactorSetupGenerators.ToDictionary(x => x.ProviderName);
 }