Delen via


Transaction Class

Definition

Represents a transaction. KeyValueStoreReplica

public class Transaction : System.Fabric.TransactionBase
type Transaction = class
    inherit TransactionBase
Public Class Transaction
Inherits TransactionBase
Inheritance
Transaction

Properties

Id

Gets the ID of the transaction as a Guid.

(Inherited from TransactionBase)
IsolationLevel

Gets the isolation level of the transaction as a TransactionIsolationLevel.

(Inherited from TransactionBase)

Methods

CommitAsync()

Commits the set of operations associated with the transaction. Replication and local disk writes are performed asynchronously

CommitAsync(TimeSpan)

Commits the set of operations that are associated with the transaction with an optional timeout. Replication and local disk writes are performed asynchronously. Note that the underlying replication operation may not have been cancelled even in the event of a timeout.

CommitAsync(TimeSpan, CancellationToken)
Obsolete.

Commits the set of operations that are associated with the transaction with an optional timeout. Replication and local disk writes are performed asynchronously. Note that the underlying replication operation may not have been cancelled even in the event of a timeout.

Dispose()

Performs application-defined tasks that are associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from TransactionBase)
IsDisposed()

Gets a value that indicates whether the object has been disposed.

(Inherited from TransactionBase)
OnDispose()

The dispose event occurs when the transaction is disposed of through the Dispose method.

Rollback()

Rolls back the set of operations that are associated with this transaction.

ThrowIfDisposed()

Throws an exception if the Transaction object is disposed.

Applies to