public WebhookExecutorService(IMetrics metrics, WebhookCacheService webhookCache, ILogger logger, HttpClient client)
 {
     _metrics      = metrics;
     _webhookCache = webhookCache;
     _client       = client;
     _logger       = logger.ForContext <WebhookExecutorService>();
 }
 public WebhookExecutorService(IMemoryCache cache, IMetrics metrics, WebhookCacheService webhookCache, ILogger logger)
 {
     _cache        = cache;
     _metrics      = metrics;
     _webhookCache = webhookCache;
     _logger       = logger.ForContext <WebhookExecutorService>();
     _client       = new HttpClient();
 }
示例#3
0
 public PeriodicStatCollector(IDiscordClient client, IMetrics metrics, ILogger logger, WebhookCacheService webhookCache, DbConnectionCountHolder countHolder, IDataStore data)
 {
     _client       = (DiscordShardedClient)client;
     _metrics      = metrics;
     _webhookCache = webhookCache;
     _countHolder  = countHolder;
     _data         = data;
     _logger       = logger.ForContext <PeriodicStatCollector>();
 }
示例#4
0
 public PeriodicStatCollector(DiscordShardedClient client, IMetrics metrics, ILogger logger, WebhookCacheService webhookCache, DbConnectionCountHolder countHolder, CpuStatService cpu, IDatabase db)
 {
     _client       = client;
     _metrics      = metrics;
     _webhookCache = webhookCache;
     _countHolder  = countHolder;
     _cpu          = cpu;
     _db           = db;
     _logger       = logger.ForContext <PeriodicStatCollector>();
 }
示例#5
0
 public PeriodicStatCollector(IMetrics metrics, ILogger logger, WebhookCacheService webhookCache, DbConnectionCountHolder countHolder, CpuStatService cpu, IDatabase db, IDiscordCache cache)
 {
     _metrics      = metrics;
     _webhookCache = webhookCache;
     _countHolder  = countHolder;
     _cpu          = cpu;
     _db           = db;
     _cache        = cache;
     _logger       = logger.ForContext <PeriodicStatCollector>();
 }
示例#6
0
 public PeriodicStatCollector(IDiscordClient client, IMetrics metrics, SystemStore systems, MemberStore members, SwitchStore switches, MessageStore messages, ILogger logger, WebhookCacheService webhookCache, DbConnectionCountHolder countHolder)
 {
     _client       = (DiscordShardedClient)client;
     _metrics      = metrics;
     _systems      = systems;
     _members      = members;
     _switches     = switches;
     _messages     = messages;
     _webhookCache = webhookCache;
     _countHolder  = countHolder;
     _logger       = logger.ForContext <PeriodicStatCollector>();
 }