public static IEventFlowOptions ConfigurePostgreSql( this IEventFlowOptions eventFlowOptions, IPostgreSqlConfiguration postgreSqlConfiguration) { return(eventFlowOptions .RegisterServices(f => { f.Register <IPostgreSqlDatabaseMigrator, PostgreSqlDatabaseMigrator>(); f.Register <IPostgreSqlConnection, PostgreSqlConnection>(); f.Register <IPostgreSqlConnectionFactory, PostgreSqlConnectionFactory>(); f.Register <IPostgreSqlErrorRetryStrategy, PostgreSqlErrorRetryStrategy>(); f.Register(_ => postgreSqlConfiguration, Lifetime.Singleton); })); }
public EventStorePostgresDbContext(DbContextOptions <EventStorePostgresDbContext> options , IPostgreSqlConfiguration efCoreConfiguration ) : base(options) { _efCoreConfiguration = efCoreConfiguration; }
public IdempotenceWriterService(IPostgreSqlConfiguration mongoConfiguration, EventStorePostgresDbContext dbContext) { _mongoConfiguration = mongoConfiguration; _dbContext = dbContext; }
public PositionWriteService(IPostgreSqlConfiguration mongoConfiguration, EventStorePostgresDbContext dbContext) { _mongoConfiguration = mongoConfiguration; _dbContext = dbContext; }
public PostgreSqlErrorRetryStrategy( IPostgreSqlConfiguration configuration) { _configuration = configuration; }