NoCoreSession Class |
Namespace: MongoDB.Driver.Core.Bindings
The NoCoreSession type exposes the following members.
Name | Description | |
---|---|---|
NoCoreSession | Initializes a new instance of the NoCoreSession class |
Name | Description | |
---|---|---|
ClusterTime |
Gets the cluster time.
| |
CurrentTransaction |
Gets the current transaction.
| |
Id |
Gets the session Id.
| |
Instance |
Gets the pre-created instance.
| |
IsCausallyConsistent |
Gets a value indicate whether this instance is causally consistent.
| |
IsDirty |
Gets a value indicate whether this session is dirty.
| |
IsImplicit |
Gets a value indicating whether this instance is implicit session.
| |
IsInTransaction |
Gets a value indicating whether this instance is in a transaction.
| |
IsSnapshot |
Gets a value indicate whether this instance is a snapshot session.
| |
OperationTime |
Gets the operation time.
| |
Options |
Gets the session options.
| |
ServerSession |
Gets the server session.
| |
SnapshotTime |
Gets the snapshot time.
|
Name | Description | |
---|---|---|
AbortTransaction |
Aborts the transaction.
| |
AbortTransactionAsync |
Aborts the transaction.
| |
AboutToSendCommand |
The driver is about to send a command on this session. Called to track session state.
| |
AdvanceClusterTime |
Advances the cluster time.
| |
AdvanceOperationTime |
Advances the operation time.
| |
AdvanceTransactionNumber |
Advances the transaction id.
| |
CommitTransaction |
Commits the transaction.
| |
CommitTransactionAsync |
Commits the transaction.
| |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
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.
| |
NewHandle |
Returns a new handle to a NoCoreSession object.
| |
SetSnapshotTimeIfNeeded |
Sets the snapshot time if not set.
| |
StartTransaction |
Starts a transaction.
| |
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).
|
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.) |