Пример #1
0
 /// <summary>
 /// Starts transaction.
 /// </summary>
 /// <param name="transactionStore">Transaction store.</param>
 /// <param name="aggregateStore">Aggregate store.</param>
 /// <param name="integrationEventStore">Integration events store.</param>
 /// <returns>Scope of the transaction.</returns>
 public ITransactionScope CreateTransactionalScope(
     ITransactionStore transactionStore,
     IAggregateStore aggregateStore,
     IIntegrationEventStore integrationEventStore)
 {
     return(CreateTransactionalScope(new TransactionScope(transactionStore, aggregateStore, integrationEventStore)));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionScope"/> class.
 /// </summary>
 /// <param name="transactionStore">Transaction store.</param>
 /// <param name="aggregateStore">Aggregate store.</param>
 /// <param name="integrationEventStore">Integration events store.</param>
 public TransactionScope(
     ITransactionStore transactionStore,
     IAggregateStore aggregateStore,
     IIntegrationEventStore integrationEventStore)
 {
     this.aggregateStore        = aggregateStore;
     this.integrationEventStore = integrationEventStore;
     this.transactionStore      = transactionStore;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionManagerBehavior{TCommand}"/> class.
 /// </summary>
 /// <param name="transactionStore">Transaction store.</param>
 /// <param name="aggregateStore">Aggregate store.</param>
 /// <param name="integrationEventStore">Integration events store.</param>
 public TransactionManagerBehavior(ITransactionStore transactionStore, IAggregateStore aggregateStore, IIntegrationEventStore integrationEventStore)
 {
     this.transactionStore      = transactionStore;
     this.aggregateStore        = aggregateStore;
     this.integrationEventStore = integrationEventStore;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PublisherBehavior{TCommand}"/> class.
 /// </summary>
 /// <param name="eventBus">Events bus.</param>
 /// <param name="reportBus">Signals bus.</param>
 /// <param name="integrationEventStore">Store of integration events.</param>
 public PublisherBehavior(IEventBus eventBus, IReportBus reportBus, IIntegrationEventStore integrationEventStore)
 {
     this.eventBus              = eventBus;
     this.reportBus             = reportBus;
     this.integrationEventStore = integrationEventStore;
 }