Example #1
0
        //private CancellationToken _cancelToken; //if we are interrupted during startup
        //private CancellationToken _stoppingToken; //if we are signaled to stop

        public SlackConnectionHost(ILogger logger, BotConfig config, MessageDispatcher dispatcher, ISlackClientFactory factory)
        {
            _logger     = logger ?? throw new System.ArgumentNullException(nameof(logger));
            _config     = config ?? throw new System.ArgumentNullException(nameof(config));
            _dispatcher = dispatcher ?? throw new System.ArgumentNullException(nameof(dispatcher));
        }
Example #2
0
 public SlackCore(ILogger logger, MessageDispatcher dispatcher, ISlackConnectionProvider connectionProvider)
 {
     _logger            = logger ?? throw new System.ArgumentNullException(nameof(logger));
     _dispatcher        = dispatcher ?? throw new System.ArgumentNullException(nameof(dispatcher));
     ConnectionProvider = connectionProvider ?? throw new System.ArgumentNullException(nameof(connectionProvider));
 }