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.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
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