Click or drag to resize

ICoreSessionHandle Interface

A handle to a reference counted core session.

Namespace:  MongoDB.Driver.Core.Bindings
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public interface ICoreSessionHandle : ICoreSession, 
	IDisposable

The ICoreSessionHandle type exposes the following members.

Properties
  NameDescription
Public propertyClusterTime
Gets the cluster time.
(Inherited from ICoreSession.)
Public propertyCurrentTransaction
Gets the current transaction.
(Inherited from ICoreSession.)
Public propertyId
Gets the session Id.
(Inherited from ICoreSession.)
Public propertyIsCausallyConsistent
Gets a value indicate whether this instance is causally consistent.
(Inherited from ICoreSession.)
Public propertyIsDirty
Gets a value indicate whether this session is dirty.
(Inherited from ICoreSession.)
Public propertyIsImplicit
Gets a value indicating whether this instance is implicit session.
(Inherited from ICoreSession.)
Public propertyIsInTransaction
Gets a value indicating whether this instance is in a transaction.
(Inherited from ICoreSession.)
Public propertyIsSnapshot
Gets a value indicate whether this instance is a snapshot session.
(Inherited from ICoreSession.)
Public propertyOperationTime
Gets the operation time.
(Inherited from ICoreSession.)
Public propertyOptions
Gets the session options.
(Inherited from ICoreSession.)
Public propertyServerSession
Gets the server session.
(Inherited from ICoreSession.)
Public propertySnapshotTime
Gets the snapshot time.
(Inherited from ICoreSession.)
Top
Methods
  NameDescription
Public methodAbortTransaction
Aborts the transaction.
(Inherited from ICoreSession.)
Public methodAbortTransactionAsync
Aborts the transaction.
(Inherited from ICoreSession.)
Public methodAboutToSendCommand
The driver is about to send a command on this session. Called to track session state.
(Inherited from ICoreSession.)
Public methodAdvanceClusterTime
Advances the cluster time.
(Inherited from ICoreSession.)
Public methodAdvanceOperationTime
Advances the operation time.
(Inherited from ICoreSession.)
Public methodAdvanceTransactionNumber
Advances the transaction id.
(Inherited from ICoreSession.)
Public methodCommitTransaction
Commits the transaction.
(Inherited from ICoreSession.)
Public methodCommitTransactionAsync
Commits the transaction.
(Inherited from ICoreSession.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodFork
Increments the reference count of the underlying session and returns a new handle to it.
Public methodMarkDirty
Marks the session as dirty.
(Inherited from ICoreSession.)
Public methodSetSnapshotTimeIfNeeded
Sets the snapshot time if not set.
(Inherited from ICoreSession.)
Public methodStartTransaction
Starts a transaction.
(Inherited from ICoreSession.)
Public methodWasUsed
Called by the driver when the session is used (i.e. sent to the server).
(Inherited from ICoreSession.)
Top
See Also