Click or drag to resize

ICoreServerSession Interface

The interface for a core server session.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public interface ICoreServerSession : IDisposable

The ICoreServerSession 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