Click or drag to resize

IClientSessionHandle Interface

A handle to an underlying reference counted IClientSession.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public interface IClientSessionHandle : IClientSession, 
	IDisposable

The IClientSessionHandle type exposes the following members.

Properties
  NameDescription
Public propertyClient
Gets the client.
(Inherited from IClientSession.)
Public propertyClusterTime
Gets the cluster time.
(Inherited from IClientSession.)
Public propertyIsImplicit
Gets a value indicating whether this session is an implicit session.
(Inherited from IClientSession.)
Public propertyIsInTransaction
Gets a value indicating whether this instance is in a transaction.
(Inherited from IClientSession.)
Public propertyOperationTime
Gets the operation time.
(Inherited from IClientSession.)
Public propertyOptions
Gets the options.
(Inherited from IClientSession.)
Public propertyServerSession
Gets the server session.
(Inherited from IClientSession.)
Public propertyWrappedCoreSession
Gets the wrapped core session (intended for internal use only).
(Inherited from IClientSession.)
Top
Methods
  NameDescription
Public methodAbortTransaction
Aborts the transaction.
(Inherited from IClientSession.)
Public methodAbortTransactionAsync
Aborts the transaction.
(Inherited from IClientSession.)
Public methodAdvanceClusterTime
Advances the cluster time.
(Inherited from IClientSession.)
Public methodAdvanceOperationTime
Advances the operation time.
(Inherited from IClientSession.)
Public methodCommitTransaction
Commits the transaction.
(Inherited from IClientSession.)
Public methodCommitTransactionAsync
Commits the transaction.
(Inherited from IClientSession.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodFork
Forks this instance.
Public methodStartTransaction
Starts a transaction.
(Inherited from IClientSession.)
Public methodWithTransactionTResult
Executes a callback within a transaction, with retries if needed.
(Inherited from IClientSession.)
Public methodWithTransactionAsyncTResult
Executes a callback within a transaction, with retries if needed.
(Inherited from IClientSession.)
Top
See Also