Skip to content

Search EricksonLopez.* Ecosystem

Type a library name, NuGet package ID, .NET type, or architectural concept to search across the portal.

Core Concepts — ITransactionManager, Options & Savepoints

EricksonLopez.Transaction separates lifecycle coordination (ITransactionManager) from active unit-of-work handles (ITransaction) and safe command execution (ITransactionContext).

  • ITransactionManager: Exposes CurrentContext, BeginAsync(TransactionOptions? = null, CancellationToken = default) -> Task<ITransaction>, and ExecuteAsync(...).
  • ITransaction : IAsyncDisposable: Exposes TransactionId, Context, State, CommitAsync, RollbackAsync, and CreateSavepointAsync(string name, CancellationToken = default).
  • TransactionResultExtensions.ExecuteResultAsync: Commits automatically on Result.IsSuccess and rolls back on Result.IsFailure.

Defaults IsolationLevel.ReadCommitted, NestedBehavior = NestedTransactionBehavior.UseSavepoint (JoinExisting, RequireNew, Suppress also available), DeferAcquisition = false, CommitOnFailure = false, and SanitizeTelemetryMetadata, alongside static presets Default, Serializable, ReadOnlyMode, Deferred, Autonomous, and WithTimeout(TimeSpan). (Note: OwnsConnection = true is a v3.0.0 local addition.)