Esempio n. 1
0
 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);
     }));
 }
Esempio n. 2
0
 public EventStorePostgresDbContext(DbContextOptions <EventStorePostgresDbContext> options
                                    , IPostgreSqlConfiguration efCoreConfiguration
                                    ) : base(options)
 {
     _efCoreConfiguration = efCoreConfiguration;
 }
Esempio n. 3
0
 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;
 }