Click or drag to resize

IServerSession Interface

The interface for a server session.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public interface IServerSession : IDisposable

The IServerSession type exposes the following members.

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