CoreSessionHandle Class |
Namespace: MongoDB.Driver.Core.Bindings
The CoreSessionHandle type exposes the following members.
| Name | Description | |
|---|---|---|
| CoreSessionHandle |
Initializes a new instance of the CoreSessionHandle class.
|
| Name | Description | |
|---|---|---|
| ClusterTime |
Gets the cluster time.
(Inherited from WrappingCoreSession.) | |
| CurrentTransaction |
Gets the current transaction.
(Inherited from WrappingCoreSession.) | |
| Id |
Gets the session Id.
(Inherited from WrappingCoreSession.) | |
| IsCausallyConsistent |
Gets a value indicate whether this instance is causally consistent.
(Inherited from WrappingCoreSession.) | |
| IsDirty |
Gets a value indicate whether this session is dirty.
(Inherited from WrappingCoreSession.) | |
| IsImplicit |
Gets a value indicating whether this instance is implicit session.
(Inherited from WrappingCoreSession.) | |
| IsInTransaction |
Gets a value indicating whether this instance is in a transaction.
(Inherited from WrappingCoreSession.) | |
| OperationTime |
Gets the operation time.
(Inherited from WrappingCoreSession.) | |
| Options |
Gets the session options.
(Inherited from WrappingCoreSession.) | |
| ServerSession |
Gets the server session.
(Inherited from WrappingCoreSession.) | |
| Wrapped |
Gets the wrapped session.
(Inherited from WrappingCoreSession.) |
| 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.) | |
| 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.) |