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.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
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
Gets the next transaction number.
Public methodDispose (Inherited from IDisposable.)
Public methodWasUsed
Called by the driver when the session is used (i.e. sent to the server).
Top
See Also