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;
        }
Exemple #2
0
 public ServiceListService(ServiceListContext dbContext, IOptions <ServiceListSettings> settings, ILogger <ServiceListService> logger)
 {
     _settings       = settings.Value;
     _catalogContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _logger         = logger;
 }