Example #1
0
        public SlackApiClient(ResilientHttpClient httpClient, ILogger logger, SlackConfiguration configuration)
        {
            _configuration = configuration;
            _logger        = logger;
            _httpClient    = httpClient;

            InitializeChannelId(_configuration.PostChannel);
        }
Example #2
0
        public SlackClient(SlackConfiguration configuration)
        {
            _configuration = configuration;
            InitializeMessageBufferFromDisk();

            var httpClient = new ResilientHttpClient();

            _messageClient = new SlackMessageClient(httpClient, configuration);
            var logger = new ConsoleLogger("SlackClient", (name, level) => true, includeScopes: true);

            _apiClient = new SlackApiClient(httpClient, logger, configuration);
        }
 public SlackMessageClient(ResilientHttpClient httpClient, SlackConfiguration configuration)
 {
     _configuration = configuration;
     _httpClient    = httpClient;
 }