Exemple #1
0
 public ElasticSearchRepository(IElasticClient elasticClient, IAggregateEventsPublisher aggregateEventsPublisher)
 {
     this.elasticClient            = elasticClient;
     this.aggregateEventsPublisher = aggregateEventsPublisher;
 }
Exemple #2
0
 public DapperRepository(IDbConnection dbConnection, IAggregateEventsPublisher aggregateEventsPublisher, IDapperSqlGenerator dapperSqlGenerator = null)
 {
     this.dbConnection             = dbConnection ?? throw new ArgumentNullException(nameof(dbConnection));
     this.aggregateEventsPublisher = aggregateEventsPublisher;
     this.dapperSqlGenerator       = dapperSqlGenerator;
 }
 public EntityFrameworkRepository(TDbContext dbContext, IAggregateEventsPublisher aggregateEventsPublisher)
 {
     this.dbContext = dbContext ?? throw new ArgumentException(nameof(dbContext));
     this.aggregateEventsPublisher = aggregateEventsPublisher ?? throw new ArgumentException(nameof(aggregateEventsPublisher));
 }
Exemple #4
0
 public MartenDocumentRepository(IDocumentSession documentSession, IAggregateEventsPublisher aggregateEventsPublisher)
 {
     this.documentSession          = documentSession ?? throw new ArgumentException(nameof(documentSession));
     this.aggregateEventsPublisher = aggregateEventsPublisher;
 }
Exemple #5
0
 public MartenEventSourcedRepository(IDocumentSession documentSession, MartenEventStore eventStore, IAggregateEventsPublisher aggregateEventsPublisher)
 {
     this.documentSession          = documentSession ?? throw new ArgumentException(nameof(documentSession));
     this.eventStore               = eventStore ?? throw new ArgumentException(nameof(eventStore));
     this.aggregateEventsPublisher = aggregateEventsPublisher ?? throw new ArgumentException(nameof(aggregateEventsPublisher));
 }