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 | |
| ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ | --------------------------------------------------------- |
| | Id | Gets the session Id. |
|
| IsDirty | Gets a value indicate whether this session is dirty. |
|
| LastUsedAt | Gets the time this server session was last used (in UTC). |
Methods
| | Name | Description | |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | AdvanceTransactionNumber | Gets the next transaction number. |
|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
|
| MarkDirty | Marks the session as dirty. |
|
| WasUsed | Called by the driver when the session is used (i.e. sent to the server). |
See Also