public ServiceListController(ServiceListContext context, IOptionsSnapshot <ServiceListSettings> settings, IServiceListIntegrationEventService catalogIntegrationEventService) { _serviceListContext = context ?? throw new ArgumentNullException(nameof(context)); _catalogIntegrationEventService = catalogIntegrationEventService ?? throw new ArgumentNullException(nameof(catalogIntegrationEventService)); _settings = settings.Value; context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; }
public BonsuActivatedIntegrationEventHandler( ServiceListContext ServiceListContext, IServiceListIntegrationEventService catalogIntegrationEventService, ILogger <BonsuActivatedIntegrationEventHandler> logger) { _serviceListContext = ServiceListContext; _catalogIntegrationEventService = catalogIntegrationEventService; _logger = logger ?? throw new System.ArgumentNullException(nameof(logger)); }