Пример #1
0
 public DiscordUserVerificationListener(IDiscordSocketClientProvider provider, IMediator mediator, RsPeerContext db, IRedisService redis)
 {
     _provider = provider;
     _mediator = mediator;
     _db       = db;
     _redis    = redis;
 }
 public DiscordCacheListener(IDiscordSocketClientProvider provider, IRedisService redis, IMediator mediator, RsPeerContext db)
 {
     _provider = provider;
     _redis    = redis;
     _mediator = mediator;
     _db       = db;
 }
 public RegisterDiscordBotCommandHandler(IDiscordSocketClientProvider provider, IServiceScopeFactory factory, IConfiguration configuration, ILogger <RegisterDiscordBotCommandHandler> logger, IRedisService redis)
 {
     _provider    = provider;
     _factory     = factory;
     _roleHelper  = new DiscordRoleHelper(configuration);
     _logger      = logger;
     _redis       = redis;
     _lockFactory = RedLockFactory.Create(new List <RedLockMultiplexer>
     {
         _redis.Connection()
     });
 }
 public DiscordStatusListener(RsPeerContext db, IDiscordSocketClientProvider provider)
 {
     _db       = db;
     _provider = provider;
 }
Пример #5
0
 public SendDiscordAlerts(IDiscordSocketClientProvider provider, RsPeerContext db, IMediator mediator)
 {
     _provider = provider;
     _db       = db;
     _mediator = mediator;
 }
 public DiscordInuvationListener(IDiscordSocketClientProvider provider, RsPeerContext db)
 {
     _provider = provider;
     _db       = db;
 }
Пример #7
0
 public SendDiscordPrivateMessageCommandHandler(RsPeerContext db, IDiscordSocketClientProvider provider, IConfiguration _configuration)
 {
     _db       = db;
     _provider = provider;
     _guild    = _configuration.GetValue <ulong>("Discord:GuildId");
 }
Пример #8
0
 public DiscordHelpListener(IDiscordSocketClientProvider provider, RsPeerContext db, IRedisService redis)
 {
     _provider = provider;
     _db       = db;
     _redis    = redis;
 }
 public DiscordTokenSalesListener(IMediator mediator, IDiscordSocketClientProvider provider, RsPeerContext db)
 {
     _mediator = mediator;
     _provider = provider;
     _db       = db;
 }
Пример #10
0
 public DiscordBotStatsListener(IRedisService redis, IDiscordSocketClientProvider provider)
 {
     _redis    = redis;
     _provider = provider;
 }