Click or drag to resize

IClientSession Interface

The interface for a client session.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public interface IClientSession : IDisposable

The IClientSession type exposes the following members.

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