예제 #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);
     }));
 }
예제 #2
0
 public EventStorePostgresDbContext(DbContextOptions <EventStorePostgresDbContext> options
                                    , IPostgreSqlConfiguration efCoreConfiguration
                                    ) : base(options)
 {
     _efCoreConfiguration = efCoreConfiguration;
 }
예제 #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;
 }