예제 #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>();
 }
예제 #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();
        }