Interface IServerSession

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

The interface for a server session.

public interface IServerSession : IDisposable

Inherited Members

IDisposable.Dispose()

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).