예제 #1
0
 public InMemoryDispatcher(ICommandDispatcher commandDispatcher,
                           IIntegrationEventDispatcher eventDispatcher,
                           IQueryDispatcher queryDispatcher)
 {
     _commandDispatcher = commandDispatcher;
     _eventDispatcher   = eventDispatcher;
     _queryDispatcher   = queryDispatcher;
 }
예제 #2
0
 public UnitOfWork(
     TContext dbContext, IDomainEventsDispatcher domainEventsDispatcher,
     IIntegrationEventDispatcher <TContext> integrationEventDispatcher
     )
 {
     this._dbContext = dbContext;
     this._domainEventsDispatcher = domainEventsDispatcher;
     _integrationEventDispatcher  = integrationEventDispatcher;
     _domainEventSource           = new List <Entity>();
 }
 public ServiceBusEventSubscriber(
     BusProperties busProperties,
     ILogger <ServiceBusEventSubscriber> logger,
     IBusSubscriptionsManager busSubscriptionsManager,
     IIntegrationEventDispatcher eventDispatcher)
 {
     _busProperties          = busProperties;
     _logger                 = logger ?? throw new ArgumentNullException(nameof(logger));
     _subscriptionClient     = new SubscriptionClient(busProperties.ConnectionString, busProperties.EventTopicName, busProperties.EventSubscriptionName);
     _busSubscriptionManager = busSubscriptionsManager ?? throw new ArgumentNullException(nameof(busSubscriptionsManager));
     _eventDispatcher        = eventDispatcher ?? throw new ArgumentNullException(nameof(eventDispatcher));
 }