예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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));
        }
예제 #3
0
 public PostgreSqlTimeoutStorageFluentConfigurer(PostgreSqlTimeoutStorage postgreSqlTimeoutStorage)
 {
     this.postgreSqlTimeoutStorage = postgreSqlTimeoutStorage;
 }
예제 #4
0
        protected override void DoSetUp()
        {
            DropTable(TimeoutsTableName);

            storage = new PostgreSqlTimeoutStorage(ConnectionString, TimeoutsTableName);
        }
예제 #5
0
 public PostgreSqlTimeoutStorageFluentConfigurer(PostgreSqlTimeoutStorage postgreSqlTimeoutStorage)
 {
     this.postgreSqlTimeoutStorage = postgreSqlTimeoutStorage;
 }