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.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
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.
Top
See Also