Ejemplo n.º 1
0
 public AuthLogger(
     GatewayDbContext dbContext,
     SecurityBot securityBot)
 {
     _dbContext   = dbContext;
     _securityBot = securityBot;
 }
Ejemplo n.º 2
0
 public BotStarter(
     ILogger <TimedCleaner> logger,
     IServiceScopeFactory scopeFactory)
 {
     _logger         = logger;
     using var scope = scopeFactory.CreateScope();
     _bot            = scope.ServiceProvider.GetService <SecurityBot>();
     _botFactory     = scope.ServiceProvider.GetService <BotFactory>();
 }