CoreSessionHandle Methods |
The CoreSessionHandle type exposes the following members.
Name | Description | |
---|---|---|
AbortTransaction |
Aborts the transaction.
(Inherited from WrappingCoreSession.) | |
AbortTransactionAsync |
Aborts the transaction.
(Inherited from WrappingCoreSession.) | |
AboutToSendCommand |
The driver is about to send a command on this session. Called to track session state.
(Inherited from WrappingCoreSession.) | |
AdvanceClusterTime |
Advances the cluster time.
(Inherited from WrappingCoreSession.) | |
AdvanceOperationTime |
Advances the operation time.
(Inherited from WrappingCoreSession.) | |
AdvanceTransactionNumber |
Advances the transaction id.
(Inherited from WrappingCoreSession.) | |
CommitTransaction |
Commits the transaction.
(Inherited from WrappingCoreSession.) | |
CommitTransactionAsync |
Commits the transaction.
(Inherited from WrappingCoreSession.) | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from WrappingCoreSession.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Fork |
Increments the reference count of the underlying session and returns a new handle to it.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MarkDirty |
Marks the session as dirty.
(Inherited from WrappingCoreSession.) | |
SetSnapshotTimeIfNeeded |
Sets the snapshot time if not set.
(Inherited from WrappingCoreSession.) | |
StartTransaction |
Starts a transaction.
(Inherited from WrappingCoreSession.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WasUsed |
Called by the driver when the session is used (i.e. sent to the server).
(Inherited from WrappingCoreSession.) |
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |