public CatalogIntegrationEventService(IEventBus eventBus, BrandingContext catalogContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _catalogContext = catalogContext ?? throw new ArgumentNullException(nameof(catalogContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_catalogContext.Database.GetDbConnection()); }
public BrandingController(IHostingEnvironment env, IOptionsSnapshot <BrandingSettings> settings, BrandingContext catalogContext) { _env = env; _catalogContext = catalogContext; _settings = settings.Value; ((DbContext)catalogContext).ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; }
public BrandingController(BrandingContext context) { _context = context; }
public PicController(IHostingEnvironment env, BrandingContext catalogContext) { _env = env; _catalogContext = catalogContext; }