/// <summary> /// Configures Rebus to store timeouts in PostgreSQL. /// </summary> public static PostgreSqlTimeoutStorageFluentConfigurer StoreInPostgreSql(this RebusTimeoutsConfigurer configurer, string connectionString, string timeoutsTableName) { var storage = new PostgreSqlTimeoutStorage(connectionString, timeoutsTableName); configurer.Use(storage); return new PostgreSqlTimeoutStorageFluentConfigurer(storage); }
/// <summary> /// Configures Rebus to store timeouts in PostgreSQL. /// </summary> public static PostgreSqlTimeoutStorageFluentConfigurer StoreInPostgreSql(this RebusTimeoutsConfigurer configurer, string connectionString, string timeoutsTableName) { var storage = new PostgreSqlTimeoutStorage(connectionString, timeoutsTableName); configurer.Use(storage); return(new PostgreSqlTimeoutStorageFluentConfigurer(storage)); }
public PostgreSqlTimeoutStorageFluentConfigurer(PostgreSqlTimeoutStorage postgreSqlTimeoutStorage) { this.postgreSqlTimeoutStorage = postgreSqlTimeoutStorage; }
protected override void DoSetUp() { DropTable(TimeoutsTableName); storage = new PostgreSqlTimeoutStorage(ConnectionString, TimeoutsTableName); }