protected AdoNetSagaPersister CreatePersister(bool createTables = false) { var result = new AdoNetSagaPersister(_manager, SagaTableName, SagaIndexTableName, false); if (createTables) { result.EnsureTablesAreCreated(); } return(result); }
protected AdoNetSagaPersister CreatePersister(bool createTables = false, bool useLocking = false, bool useNoWaitLocking = false) { var result = new AdoNetSagaPersister(_manager, SagaTableName, SagaIndexTableName); if (createTables) { result.EnsureTablesAreCreated(); } if (useLocking) { result.UseLockingOnSagaUpdates(!useNoWaitLocking); } return(result); }