Interface IStorageTransaction
Represents a transaction to be used for storage operations.
Namespace: Silverback.Storage
Assembly: Silverback.Integration.dll
Syntax
public interface IStorageTransaction : IDisposable, IAsyncDisposable
Properties
UnderlyingTransaction
Gets the underlying transaction object.
Declaration
object UnderlyingTransaction { get; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
Commit()
Commits the transaction.
Declaration
void Commit()
CommitAsync()
Commits the transaction.
Declaration
Task CommitAsync()
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |
Rollback()
Aborts the transaction.
Declaration
void Rollback()
RollbackAsync()
Aborts the transaction.
Declaration
Task RollbackAsync()
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |