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;
 }
Exemplo n.º 3
0
 public BrandingController(BrandingContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public PicController(IHostingEnvironment env,
                      BrandingContext catalogContext)
 {
     _env            = env;
     _catalogContext = catalogContext;
 }