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());
 }
Ejemplo n.º 3
0
 public ProdutoIntegrationEventService(IEventBus eventBus,
                                       ProdutoContext produtoContext,
                                       IIntegrationEventLogService integrationEventLogService)
 {
     _eventBus                   = eventBus;
     _produtoContext             = produtoContext;
     _integrationEventLogService = integrationEventLogService;
 }
Ejemplo n.º 4
0
        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());
 }
Ejemplo n.º 6
0
 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());
 }
Ejemplo n.º 7
0
 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());
 }
Ejemplo n.º 8
0
 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());
 }
Ejemplo n.º 9
0
 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());
 }
Ejemplo n.º 10
0
 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());
 }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 15
0
 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());
 }
Ejemplo n.º 19
0
        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);
        }
Ejemplo n.º 20
0
 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());
 }
Ejemplo n.º 21
0
 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;
 }
Ejemplo n.º 22
0
 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));
 }
Ejemplo n.º 23
0
        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());
 }
Ejemplo n.º 27
0
 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;
 }
Ejemplo n.º 29
0
 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());
 }