示例#1
0
        /// <summary>
        /// Configures Rebus to store sagas in PostgreSQL.
        /// </summary>
        public static PostgreSqlSagaPersisterFluentConfigurer StoreInPostgreSql(this RebusSagasConfigurer configurer, string connectionString, string sagaTable, string sagaIndexTable)
        {
            var persister = new PostgreSqlSagaPersister(connectionString, sagaTable, sagaIndexTable);

            configurer.Use(persister);

            return(new PostgreSqlSagaPersisterFluentConfigurer(persister));
        }
示例#2
0
 public PostgreSqlSagaPersisterFluentConfigurer(PostgreSqlSagaPersister postgreSqlSagaPersister)
 {
     this.postgreSqlSagaPersister = postgreSqlSagaPersister;
 }