public TransactionCommandHandlerDecorator(ICommandHandler <TCommand> decoratedCommandHandler,
                                           IUnitOfWork <TModule> unitOfWork, IIntegrationEventsPublisher <TModule> integrationEventsPublisher)
 {
     _decoratedCommandHandler = decoratedCommandHandler;
     _unitOfWork = unitOfWork;
     _integrationEventsPublisher = integrationEventsPublisher;
 }
 public EFCoreDomainEventPublisher(IDomainEventAccessor <TModule> domainEventAccessor,
                                   IEnumerable <IDomainEventMapper> mappers, IDomainEventDispatcher dispatcher,
                                   IIntegrationEventsPublisher <TModule> integrationEventsPublisher)
 {
     _domainEventAccessor        = domainEventAccessor;
     _mappers                    = mappers;
     _dispatcher                 = dispatcher;
     _integrationEventsPublisher = integrationEventsPublisher;
 }
예제 #3
0
 public DomainEventPublisher(DomainEventsAccessor <TDbContext> accessor, IIntegrationEventsPublisher <TDbContext> integrationEventsPublisher,
                             IEnumerable <IDomainEventMapper> mappers,
                             IDomainEventDispatcher dispatcher)
 {
     _accessor = accessor;
     _integrationEventsPublisher = integrationEventsPublisher;
     _mappers    = mappers;
     _dispatcher = dispatcher;
 }
 public CommandHandlerTransactionDecorator(ICommandHandler <TCommand> decoratedCommandHandler,
                                           IUnitOfWork <FriendshipsModule> unitOfWork,
                                           IIntegrationEventsPublisher <FriendshipsModule> integrationEventsPublisher) : base(
         decoratedCommandHandler, unitOfWork, integrationEventsPublisher)
 {
 }
 public TransactionCommandHandlerDecorator(ICommandHandler <TCommand> decoratedCommandHandler,
                                           IUnitOfWork <GroupsModule> unitOfWork,
                                           IIntegrationEventsPublisher <GroupsModule> integrationEventsPublisher) : base(
         decoratedCommandHandler, unitOfWork, integrationEventsPublisher)
 {
 }