public TrendAnalysisIntegrationEventService(IEventBus eventBus, TrendAnalysisContext trendAnalysisContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _trendAnalysisContext = trendAnalysisContext ?? throw new ArgumentNullException(nameof(trendAnalysisContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_trendAnalysisContext.Database.GetDbConnection()); }
public RoomInfoIntegrationEventService(IEventBus eventBus, PropertyContext propertyContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _propertyContext = propertyContext ?? throw new ArgumentNullException(nameof(propertyContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_propertyContext.Database.GetDbConnection()); }
public ProdutoIntegrationEventService(IEventBus eventBus, ProdutoContext produtoContext, IIntegrationEventLogService integrationEventLogService) { _eventBus = eventBus; _produtoContext = produtoContext; _integrationEventLogService = integrationEventLogService; }
public EdgeIntegrationEventService(IEventBus eventBus, EdgeDbContext edgeContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _eventBus = eventBus; _edgeContext = edgeContext; _integrationEventLogService = integrationEventLogServiceFactory(_edgeContext.Database.GetDbConnection()); }
public CatalogIntegrationEventService(IEventBus eventBus, CatalogContext catalogContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { this.eventBus = eventBus; this.catalogContext = catalogContext; this.integrationEventLogServiceFactory = integrationEventLogServiceFactory; this.eventLogService = this.integrationEventLogServiceFactory(this.catalogContext.Database.GetDbConnection()); }
public ExchangeAccessIntegrationEventService(IEventBus eventBus, ExchangeAccessContext exchangeAccessContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _exchangeAccessContext = exchangeAccessContext ?? throw new ArgumentNullException(nameof(exchangeAccessContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_exchangeAccessContext.Database.GetDbConnection()); }
public DameIntegrationEventService(IEventBus eventBus, DameContext DameContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _DameContext = DameContext ?? throw new ArgumentNullException(nameof(DameContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_DameContext.Database.GetDbConnection()); }
public BusinessIntegrationEventService(IEventPublisher eventBus, BusinessDbContext context, Func <DbConnection, CqrsFramework.EventStore.MySqlDB.Services.IIntegrationEventLogService> integrationEventLogServiceFactory) { _context = context ?? throw new ArgumentNullException(nameof(context)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_context.Database.GetDbConnection()); }
public OperacionalIntegrationEventService(IEventBus eventBus, OperacionalContext operacionalContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _operacionalContext = operacionalContext ?? throw new ArgumentNullException(nameof(operacionalContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_operacionalContext.Database.GetDbConnection()); _eventLogServiceSec = _integrationEventLogServiceFactory(_operacionalContext.Database.GetDbConnection()); }
public InventoryIntegrationEventService(IEventBus eventBus, InventoryContext inventoryContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _inventoryContext = inventoryContext ?? throw new ArgumentNullException(nameof(inventoryContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(RelationalDatabaseFacadeExtensions.GetDbConnection(_inventoryContext.Database)); }
public CompletedEventHandler(IIntegrationEventLogService integrationEventLogService, EdcConfiguration edcConfiguration) { Ensure.That(integrationEventLogService).IsNotNull(); Ensure.That(edcConfiguration).IsNotNull(); _integrationEventLogService = integrationEventLogService; _edcConfiguration = edcConfiguration; }
public ModuloIntegrationEventService(ModuloContext moduloContext, IntegrationEventLogContext logContext, IEventBus eventBus, IOptionsSnapshot <ModuloSettings> settings, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _moduloContext = moduloContext ?? throw new ArgumentNullException(nameof(moduloContext)); _logContext = logContext ?? throw new ArgumentNullException(nameof(logContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_moduloContext.Database.GetDbConnection()); }
public CatalogController(CatalogContext context, IEventBus eventBus, IIntegrationEventLogService eventLogService, ILogger <CatalogController> logger) { this._logger = logger; this._eventLogService = eventLogService; this._eventBus = eventBus; _catalogContext = context ?? throw new ArgumentNullException(nameof(context)); context.ChangeTracker.QueryTrackingBehavior = Microsoft.EntityFrameworkCore.QueryTrackingBehavior.NoTracking; }
public WorkItemIntegrationEventService(IEventBus eventBus, IIntegrationEventLogService eventLogService, ILogger <WorkItemIntegrationEventService> logger, IUnitOfWork uow) { _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = eventLogService ?? throw new ArgumentNullException(nameof(eventLogService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _uow = uow; }
public IdentityAccessIntegrationEventService(IEventPublisher eventBus, IdentityAccessDbContext context, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _context = context ?? throw new ArgumentNullException(nameof(context)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_context.Database.GetDbConnection()); }
public CustomerIntegrationEventService( IEventBus eventBus, FructoseContext fructoseContext, IntegrationEventLogContext eventLogContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _eventBus = eventBus; _fructoseContext = fructoseContext; _eventLogService = integrationEventLogServiceFactory(fructoseContext.Database.GetDbConnection()); }
public CatalogIntegrationEventService( IEventBus eventBus, CatalogDbContext catalogContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { this._eventBus = eventBus; this._catalogContext = catalogContext; _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventLogService = _integrationEventLogServiceFactory(_catalogContext.Database.GetDbConnection()); }
public OrderingIntegrationEventService( IEventBus eventBus, OrderingContext orderingContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { this._eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); this._orderingContext = orderingContext ?? throw new ArgumentNullException(nameof(orderingContext)); this._integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); this._eventLogService = this._integrationEventLogServiceFactory(this._orderingContext.Database.GetDbConnection()); }
public MovieIntegrationEventService(IEventBus eventBus, MovieContext movieContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _movieContext = movieContext ?? throw new ArgumentNullException(nameof(movieContext)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); DbConnection conn = _movieContext.Database.GetDbConnection(); _eventLogService = _integrationEventLogServiceFactory(conn); }
public ASNVerifyIntegrationEventService( Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory, IEventBus eventBus, ILogger <ASNVerifyIntegrationEventService> logger, ISodimacDBManager dbManager) { _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _dbManager = dbManager ?? throw new ArgumentException(nameof(dbManager)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventLogService = _integrationEventLogServiceFactory(_dbManager.GetDatabase().CreateConnection()); }
public CatalogIntegrationEventService(IEventBus eventBus, CatalogContext catalogContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory, Serilog.ILogger logger) { _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()); _logger = logger; }
public LevantamentoIntegrationEventService( LevantamentoContext levantamentoContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory, IEventBus eventBus) { _levantamentoContext = levantamentoContext; _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventLogService = _integrationEventLogServiceFactory(_levantamentoContext.Database.GetDbConnection()); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); }
public EdcPublishService( IEventBusPublisher eventBusPublisher, IIntegrationEventLogService eventLogService) { Ensure.That(eventBusPublisher).IsNotNull(); Ensure.That(eventLogService).IsNotNull(); _eventBusPublisher = eventBusPublisher; _eventLogService = eventLogService; }
public AttachmentIntegrationEventService(IEventBus eventBus, AttachmentContext attachmentContext, IntegrationEventLogContext eventLogContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _attachmentContext = attachmentContext ?? throw new ArgumentNullException(nameof(attachmentContext)); _eventLogContext = eventLogContext ?? throw new ArgumentNullException(nameof(eventLogContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_attachmentContext.Database.GetDbConnection()); }
public CustomerIntegrationEventService(IEventBus eventBus, CustomerContext context, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory, ILogger <CustomerIntegrationEventService> logger) { _context = context ?? throw new ArgumentNullException(nameof(context)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(context.Database.GetDbConnection()); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public SigmaIntegrationEventService(IEventBus eventBus, SigmaContext sigmaContext, IntegrationEventLogContext eventLogContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _sigmaContext = sigmaContext ?? throw new ArgumentNullException(nameof(sigmaContext)); _eventLogContext = eventLogContext ?? throw new ArgumentNullException(nameof(eventLogContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_sigmaContext.Database.GetDbConnection()); }
public CatalogController(CatalogContext catalogContext, IEventBus eventBus, ICatalogIntegrationEventService catalogIntegrationEventService, IIntegrationEventLogService integrationEventLogService, ISearchRepository <CatalogItem> searchRepository) { this._catalogContext = catalogContext; this._eventBus = eventBus; _catalogIntegrationEventService = catalogIntegrationEventService; _integrationEventLogService = integrationEventLogService; this.searchRepository = searchRepository;; }
public RoomController( ISession session, IRoomRepository roomRepository, IIntegrationEventLogService integrationEventLogService, IEventBus eventBus) { this.session = session; this.roomRepository = roomRepository; this.integrationEventLogService = integrationEventLogService; this.eventBus = eventBus; }
public UnitOfWork( OperationalDbContext dbContext, ILogger <UnitOfWork> logger, IIntegrationEventLogService eventLogService, IEventsPublisher eventsPublisher) { _dbContext = dbContext; _logger = logger; _eventLogService = eventLogService; _eventsPublisher = eventsPublisher; }
public BookingIntegrationEventService(IEventBus eventBus, BookingDbContext bookingContext, IntegrationEventLogContext eventLogContext, Func <DbConnection, IIntegrationEventLogService> integrationEventLogServiceFactory) { _bookingContext = bookingContext ?? throw new ArgumentNullException(nameof(bookingContext)); _eventLogContext = eventLogContext ?? throw new ArgumentNullException(nameof(eventLogContext)); _integrationEventLogServiceFactory = integrationEventLogServiceFactory ?? throw new ArgumentNullException(nameof(integrationEventLogServiceFactory)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _eventLogService = _integrationEventLogServiceFactory(_bookingContext.Database.GetDbConnection()); }