示例#1
0
 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));
 }
示例#2
0
 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;
 }
示例#3
0
        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();
        }