示例#1
0
 public CatalogIntegrationEventService(CarCatalogDbContext carCatalogDbContext, Func <DbConnection, IEventLogService> integrationEventLogServiceFactory,
                                       IEventBus eventBus,
                                       ILogger <CatalogIntegrationEventService> logger)
 {
     _carCatalogDbContext = carCatalogDbContext ?? throw new ArgumentNullException(nameof(carCatalogDbContext));
     _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory));
     _eventBus        = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
     _eventLogService = _integrationEventLogServiceFactory(_carCatalogDbContext.Database.GetDbConnection());
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public CarsCatalogController(CarCatalogDbContext carCatalogDbContext,
                              ICatalogIntegrationEventService catalogIntegrationEventService)
 {
     _carCatalogDbContext            = carCatalogDbContext;
     _catalogIntegrationEventService = catalogIntegrationEventService;
 }
示例#3
0
 public CategoryRepository(CarCatalogDbContext carCatalogDbContext)
 {
     _carCatalogDbContext = carCatalogDbContext;
 }
示例#4
0
 public FeaturesController(CarCatalogDbContext context, IMapper mapper)
 {
     this.mapper  = mapper;
     this.context = context;
 }