Exemple #1
0
 public ApplicationAuthenticationHandler(
     ApplicationContextActivityDecorator applicationContextActivityDecorator,
     IOptionsMonitor <ApplicationAuthenticationOptions> options,
     ILoggerFactory loggerFactory,
     UrlEncoder urlEncoder,
     ISystemClock clock,
     IHttpContextAccessor httpContextAccessor,
     ConfigPreloader configPreloader)
     : base(options, loggerFactory, urlEncoder, clock)
 {
     this.logger = loggerFactory.CreateLogger <ApplicationAuthenticationHandler>();
     this.applicationContextActivityDecorator = applicationContextActivityDecorator;
     this.httpContextAccessor = httpContextAccessor;
     this.configPreloader     = configPreloader;
 }
Exemple #2
0
 public LoginController(
     ApplicationContextActivityDecorator traceActivityDecorator,
     ConfigPreloader configPreloader,
     ApplicationCache cache,
     RecaptchaManager recaptchaManager,
     ITwoFactorAuthenticator twoFactorAuthenticator,
     ILogger <LoginController> logger,
     IMessageBus messageBus,
     IHttpContextAccessor httpContextAccessor)
 {
     this.traceActivityDecorator = traceActivityDecorator;
     this.configPreloader        = configPreloader;
     this.cache                  = cache;
     this.recaptchaManager       = recaptchaManager;
     this.twoFactorAuthenticator = twoFactorAuthenticator;
     this.logger                 = logger;
     this.messageBus             = messageBus;
     this.httpContextAccessor    = httpContextAccessor;
 }
Exemple #3
0
 public MongoConnectionFactory(ConfigPreloader config)
 {
     Client = new MongoClient(config.Get(ConfigNames.MongoDbConnectionString));
     Blog   = Client.GetDatabase(config.Get(ConfigNames.BlogDatabaseName));
 }
Exemple #4
0
 public AwsEventBridgeMessageBus(ConfigPreloader config, ILogger <AwsEventBridgeMessageBus> logger)
 {
     this.config = config;
     this.logger = logger;
 }
 public RecaptchaManager(ConfigPreloader config, ILogger <RecaptchaManager> logger)
 {
     this.config = config;
     this.logger = logger;
 }
Exemple #6
0
 public RabbitMessageBus(ConfigPreloader config)
 {
     this.config = config;
 }
Exemple #7
0
 public AwsSqsMessageBus(ConfigPreloader config, ILogger <AwsSqsMessageBus> logger)
 {
     this.config = config;
     this.logger = logger;
 }
Exemple #8
0
 public MySqlConnectionFactory(ConfigPreloader configLoader)
 {
     Connection = new MySqlConnection(configLoader.Get(ConfigNames.MySqlDbConnectionString));
     Connection.Open();
 }
 public ToManyAdminLoginAttemptsHealthCheck(ApplicationCache cache, ConfigPreloader config, ApplicationContextActivityDecorator traceActivityDecorator)
     : base(traceActivityDecorator)
 {
     this.cache  = cache;
     this.config = config;
 }
 public AuthorizationManager(IHttpContextAccessor httpContextAccessor, ConfigPreloader configPreloader)
 {
     this.httpContextAccessor = httpContextAccessor;
     this.configPreloader     = configPreloader;
 }