예제 #1
0
        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;
        }
예제 #2
0
 public BonsuActivatedIntegrationEventHandler(
     ServiceListContext ServiceListContext,
     IServiceListIntegrationEventService catalogIntegrationEventService,
     ILogger <BonsuActivatedIntegrationEventHandler> logger)
 {
     _serviceListContext             = ServiceListContext;
     _catalogIntegrationEventService = catalogIntegrationEventService;
     _logger = logger ?? throw new System.ArgumentNullException(nameof(logger));
 }