Interface ICoreServerSession
The interface for a core server session.
public interface ICoreServerSession : IDisposable
- Inherited Members
Properties
Id
Gets the session Id.
BsonDocument Id { get; }
Property Value
- BsonDocument
The session Id.
IsDirty
Gets a value indicate whether this session is dirty.
bool IsDirty { get; }
Property Value
- bool
true
if the session is dirty.
LastUsedAt
Gets the time this server session was last used (in UTC).
DateTime? LastUsedAt { get; }
Property Value
- DateTime?
The time this server session was last used (in UTC).
Methods
AdvanceTransactionNumber()
Gets the next transaction number.
long AdvanceTransactionNumber()
Returns
- long
The transaction number.
MarkDirty()
Marks the session as dirty.
void MarkDirty()
WasUsed()
Called by the driver when the session is used (i.e. sent to the server).
void WasUsed()