public ElasticSearchRepository(IElasticClient elasticClient, IAggregateEventsPublisher aggregateEventsPublisher) { this.elasticClient = elasticClient; this.aggregateEventsPublisher = aggregateEventsPublisher; }
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)); }
public MartenDocumentRepository(IDocumentSession documentSession, IAggregateEventsPublisher aggregateEventsPublisher) { this.documentSession = documentSession ?? throw new ArgumentException(nameof(documentSession)); this.aggregateEventsPublisher = aggregateEventsPublisher; }
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)); }