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.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
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