Table of Contents

Class WrappingCoreSession

Namespace
MongoDB.Driver.Core.Bindings
Assembly
MongoDB.Driver.dll

An abstract base class for a core session that wraps another core session.

public abstract class WrappingCoreSession : ICoreSession, IDisposable
Inheritance
WrappingCoreSession
Implements
Derived
Inherited Members

Constructors

WrappingCoreSession(ICoreSession, bool)

Initializes a new instance of the WrappingCoreSession class.

Properties

ClusterTime

Gets the cluster time.

CurrentTransaction

Gets the current transaction.

Id

Gets the session Id.

IsCausallyConsistent

Gets a value indicate whether this instance is causally consistent.

IsDirty

Gets a value indicate whether this session is dirty.

IsImplicit

Gets a value indicating whether this instance is implicit session.

IsInTransaction

Gets a value indicating whether this instance is in a transaction.

IsSnapshot

Gets a value indicate whether this instance is a snapshot session.

OperationTime

Gets the operation time.

Options

Gets the session options.

ServerSession

Gets the server session.

SnapshotTime

Gets the snapshot time.

Wrapped

Gets the wrapped session.

Methods

AbortTransaction(CancellationToken)

Aborts the transaction.

AbortTransactionAsync(CancellationToken)

Aborts the transaction.

AboutToSendCommand()

The driver is about to send a command on this session. Called to track session state.

AdvanceClusterTime(BsonDocument)

Advances the cluster time.

AdvanceOperationTime(BsonTimestamp)

Advances the operation time.

AdvanceTransactionNumber()

Advances the transaction id.

CommitTransaction(CancellationToken)

Commits the transaction.

CommitTransactionAsync(CancellationToken)

Commits the transaction.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

IsDisposed()

Determines whether this instance is disposed.

MarkDirty()

Marks the session as dirty.

SetSnapshotTimeIfNeeded(BsonTimestamp)

Sets the snapshot time if not set.

StartTransaction(TransactionOptions)

Starts a transaction.

ThrowIfDisposed()

Throws if disposed.

WasUsed()

Called by the driver when the session is used (i.e. sent to the server).

See Also