Table of Contents

Interface IServerSession

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

The interface for a server session.

public interface IServerSession : IDisposable
Inherited Members

Properties

Id

Gets the session Id.

LastUsedAt

Gets the time this server session was last used (in UTC).

Methods

AdvanceTransactionNumber()

Gets the next transaction number.

WasUsed()

Called by the driver when the session is used (i.e. sent to the server).