public ISagaSnapshotStorage Create() { var snapshotStorage = new OracleSagaSnapshotStorage(OracleTestHelper.ConnectionHelper, TableName); snapshotStorage.EnsureTableIsCreated(); return(snapshotStorage); }
/// <summary> /// Configures Rebus to use Oracle to store saga data snapshots, using the specified table to store the data /// </summary> public static void StoreInOracle(this StandardConfigurer <ISagaSnapshotStorage> configurer, string connectionString, string tableName, bool automaticallyCreateTables = true, Action <OracleConnection> additionalConnectionSetup = null, bool enlistInAmbientTransaction = false) { configurer.Register(c => { var sagaStorage = new OracleSagaSnapshotStorage(new OracleConnectionHelper(connectionString, additionalConnectionSetup, enlistInAmbientTransaction), tableName); if (automaticallyCreateTables) { sagaStorage.EnsureTableIsCreated(); } return(sagaStorage); }); }