ICoreServerSession Interface (original) (raw)

The interface for a core server session.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

public interface ICoreServerSession : IDisposable

Public Interface ICoreServerSession Inherits IDisposable

type ICoreServerSession =
interface interface IDisposable end

The ICoreServerSession type exposes the following members.

Properties

| | Name | Description | | | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | --------------------------------------------------------- | | Public property | Id | Gets the session Id. | | Public property | IsDirty | Gets a value indicate whether this session is dirty. | | Public property | LastUsedAt | Gets the time this server session was last used (in UTC). |

Top

Methods

| | Name | Description | | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public method | AdvanceTransactionNumber | Gets the next transaction number. | | Public method | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | | Public method | MarkDirty | Marks the session as dirty. | | Public method | WasUsed | Called by the driver when the session is used (i.e. sent to the server). |

Top

See Also

Reference