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.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
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
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodWasUsed
Called by the driver when the session is used (i.e. sent to the server).
Top
See Also