Click or drag to resize

ICoreServerSession Interface

The interface for a core server session.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
Syntax
public interface ICoreServerSession : IDisposable

The ICoreServerSession type exposes the following members.

Properties
  NameDescription
Public propertyId
Gets the session Id.
Public propertyIsDirty
Gets a value indicate whether this session is dirty.
Public propertyLastUsedAt
Gets the time this server session was last used (in UTC).
Top
Methods
  NameDescription
Public methodAdvanceTransactionNumber
Gets the next transaction number.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodMarkDirty
Marks the session as dirty.
Public methodWasUsed
Called by the driver when the session is used (i.e. sent to the server).
Top
See Also