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.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
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