예제 #1
0
 public RunAzureVisionOnImageUpload(ILogger logger, ISlackClientFactory slackClientFactory, IVisionClientFactory visionClientFactory, BotConfig config)
 {
     _slackClientFactory  = slackClientFactory ?? throw new ArgumentNullException(nameof(slackClientFactory));
     _visionClientFactory = visionClientFactory ?? throw new ArgumentNullException(nameof(visionClientFactory));
     _config = config ?? throw new ArgumentNullException(nameof(config));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
예제 #2
0
 public SlackBot(ISlackClientFactory slackClientFactory, IResponseHandler responseHandler, ILogger logger, string slackToken)
 {
     this.slackClientFactory = slackClientFactory;
     this.slackToken         = slackToken;
     this.responseHandler    = responseHandler;
     this.logger             = logger;
 }
예제 #3
0
 public TriggersContextFactory(
     ISlackConnectionRepository slackConnectionRepository,
     ISlackClientFactory slackClientFactory)
 {
     _slackConnectionRepository = slackConnectionRepository ??
                                  throw new ArgumentNullException(nameof(slackConnectionRepository));
     _slackClientFactory = slackClientFactory ?? throw new ArgumentNullException(nameof(slackClientFactory));
 }
예제 #4
0
 public OrganizationsService(
     IOrganizationRepository repository,
     ISlackConnectionRepository slackConnectionRepository,
     ISlackClientFactory slackClientFactory)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _slackConnectionRepository = slackConnectionRepository ??
                                  throw new ArgumentNullException(nameof(slackConnectionRepository));
     _slackClientFactory = slackClientFactory ?? throw new ArgumentNullException(nameof(slackClientFactory));
 }
예제 #5
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));
        }
예제 #6
0
        /**********************************************************************************************************
        * CONSTRUCTORS
        **********************************************************************************************************/

        public SlackProvider([NotNull] ApplicationContext appContext, ISlackClientFactory slackClientFactory)
            : base(appContext, SlackConstants.CreateProviderMetadata())
        {
            _slackClientFactory = slackClientFactory;
        }
예제 #7
0
 public SlackCrawler(ISlackClientFactory clientFactory)
 {
     _clientFactory = clientFactory;
 }
예제 #8
0
 public SlackExtensionConfigProvider(IOptions <SlackOptions> options, ISlackClientFactory slackClientFactory, IHttpClientFactory httpClientFactory)
 {
     _options            = options.Value;
     _slackClientFactory = slackClientFactory;
     _httpClientFactory  = httpClientFactory;
 }