示例#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;
 }