Esempio n. 1
0
 public Misc(BotConfig botConfig, IMetrics metrics, CpuStatService cpu, ShardInfoService shards, IDataStore data, EmbedService embeds)
 {
     _botConfig = botConfig;
     _metrics   = metrics;
     _cpu       = cpu;
     _shards    = shards;
     _data      = data;
     _embeds    = embeds;
 }
Esempio n. 2
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>();
 }
Esempio n. 3
0
 public Misc(BotConfig botConfig, IMetrics metrics, CpuStatService cpu, ShardInfoService shards, EmbedService embeds, ModelRepository repo, IDatabase db)
 {
     _botConfig = botConfig;
     _metrics   = metrics;
     _cpu       = cpu;
     _shards    = shards;
     _embeds    = embeds;
     _repo      = repo;
     _db        = db;
 }
Esempio n. 4
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>();
 }
Esempio n. 5
0
 public Misc(BotConfig botConfig, IMetrics metrics, CpuStatService cpu, ShardInfoService shards, EmbedService embeds, ModelRepository repo, IDatabase db, IDiscordCache cache, DiscordApiClient rest, Bot bot, Cluster cluster)
 {
     _botConfig = botConfig;
     _metrics   = metrics;
     _cpu       = cpu;
     _shards    = shards;
     _embeds    = embeds;
     _repo      = repo;
     _db        = db;
     _cache     = cache;
     _rest      = rest;
     _bot       = bot;
     _cluster   = cluster;
 }