Example #1
0
 public ProxyService(IDiscordClient client, LogChannelService logChannel, IDataStore data, EmbedService embeds, ILogger logger, ProxyCacheService cache, WebhookExecutorService webhookExecutor, DbConnectionFactory conn)
 {
     _client          = client;
     _logChannel      = logChannel;
     _data            = data;
     _embeds          = embeds;
     _cache           = cache;
     _webhookExecutor = webhookExecutor;
     _conn            = conn;
     _logger          = logger.ForContext <ProxyService>();
 }
Example #2
0
        public ProxyService(IDiscordClient client, LogChannelService logChannel, MessageStore messageStorage, EmbedService embeds, ILogger logger, ProxyCacheService cache, WebhookExecutorService webhookExecutor)
        {
            _client          = client;
            _logChannel      = logChannel;
            _messageStorage  = messageStorage;
            _embeds          = embeds;
            _cache           = cache;
            _webhookExecutor = webhookExecutor;
            _logger          = logger.ForContext <ProxyService>();

            _httpClient = new HttpClient();
        }