public CategoriesController( ILogger <CategoriesController> logger, IAdvanceConfiguration advanceConfiguration, IElasticsearchTimeStampFactory timeStampFactory, IElasticsearchClientConfiguration esClientConfiguration) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _advanceConfiguration = advanceConfiguration ?? throw new ArgumentNullException(nameof(advanceConfiguration)); }
public SystemEventsController( ILogger <SystemEventsController> logger, IMonitoredElasticsearchClient esClient, IElasticsearchTimeStampFactory timeStampFactory, IElasticsearchClientConfiguration esClientConfiguration, IAdvanceConfiguration advanceConfiguration, ICategorySubscriptionNotifier categorySubscriptionNotifier = null) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _esClient = esClient ?? throw new ArgumentNullException(nameof(esClient)); _timeStampFactory = timeStampFactory ?? throw new ArgumentNullException(nameof(timeStampFactory)); _esClientConfiguration = esClientConfiguration ?? throw new ArgumentNullException(nameof(esClientConfiguration)); _advanceConfiguration = advanceConfiguration ?? throw new ArgumentNullException(nameof(advanceConfiguration)); _categorySubscriptionNotifier = categorySubscriptionNotifier; }
public CategorySubscriptionNotifier( ILogger <CategorySubscriptionNotifier> logger, IAdvanceConfiguration advanceConfiguration, SlackWebhookService slackService, IMonitoredAmazonSimpleNotificationService amazonSimpleNotificationService) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _advanceConfiguration = advanceConfiguration ?? throw new ArgumentNullException(nameof(advanceConfiguration)); _slackService = slackService ?? throw new ArgumentNullException(nameof(slackService)); _amazonSimpleNotificationService = amazonSimpleNotificationService ?? throw new ArgumentNullException(nameof(amazonSimpleNotificationService)); LoadMap(); }