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)); }
public SlackBot(ISlackClientFactory slackClientFactory, IResponseHandler responseHandler, ILogger logger, string slackToken) { this.slackClientFactory = slackClientFactory; this.slackToken = slackToken; this.responseHandler = responseHandler; this.logger = logger; }
public TriggersContextFactory( ISlackConnectionRepository slackConnectionRepository, ISlackClientFactory slackClientFactory) { _slackConnectionRepository = slackConnectionRepository ?? throw new ArgumentNullException(nameof(slackConnectionRepository)); _slackClientFactory = slackClientFactory ?? throw new ArgumentNullException(nameof(slackClientFactory)); }
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)); }
//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)); }
/********************************************************************************************************** * CONSTRUCTORS **********************************************************************************************************/ public SlackProvider([NotNull] ApplicationContext appContext, ISlackClientFactory slackClientFactory) : base(appContext, SlackConstants.CreateProviderMetadata()) { _slackClientFactory = slackClientFactory; }
public SlackCrawler(ISlackClientFactory clientFactory) { _clientFactory = clientFactory; }
public SlackExtensionConfigProvider(IOptions <SlackOptions> options, ISlackClientFactory slackClientFactory, IHttpClientFactory httpClientFactory) { _options = options.Value; _slackClientFactory = slackClientFactory; _httpClientFactory = httpClientFactory; }