Class CoreTransaction
The state of a transaction.
public class CoreTransaction
- Inheritance
-
CoreTransaction
- Inherited Members
Constructors
CoreTransaction(long, TransactionOptions)
Initializes a new instance of the CoreTransaction class.
public CoreTransaction(long transactionNumber, TransactionOptions transactionOptions)
Parameters
transactionNumber
longThe transaction number.
transactionOptions
TransactionOptionsThe transaction options.
Properties
IsEmpty
Gets a value indicating whether the transaction is empty.
public bool IsEmpty { get; }
Property Value
- bool
true
if the transaction is empty; otherwise,false
.
PinnedChannel
Gets pinned channel for the current transaction. Value has meaning if and only if a transaction is in progress.
public IChannelHandle PinnedChannel { get; }
Property Value
- IChannelHandle
The pinned channel for the current transaction.
PinnedServer
Gets or sets pinned server for the current transaction. Value has meaning if and only if a transaction is in progress.
public IServer PinnedServer { get; }
Property Value
- IServer
The pinned server for the current transaction.
RecoveryToken
Gets the recovery token used in sharded transactions.
public BsonDocument RecoveryToken { get; }
Property Value
- BsonDocument
The recovery token.
State
Gets the transaction state.
public CoreTransactionState State { get; }
Property Value
- CoreTransactionState
The transaction state.
TransactionNumber
Gets the transaction number.
public long TransactionNumber { get; }
Property Value
- long
The transaction number.
TransactionOptions
Gets the transaction options.
public TransactionOptions TransactionOptions { get; }
Property Value
- TransactionOptions
The transaction options.