Table of Contents

Class CoreSessionHandle

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

A handle to a reference counted core session.

public sealed class CoreSessionHandle : WrappingCoreSession, ICoreSessionHandle, ICoreSession, IDisposable
Inheritance
CoreSessionHandle
Implements
Inherited Members

Constructors

CoreSessionHandle(ICoreSession)

Initializes a new instance of the CoreSessionHandle class.

public CoreSessionHandle(ICoreSession session)

Parameters

session ICoreSession

The session.

See Also

Methods

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

See Also

Fork()

Increments the reference count of the underlying session and returns a new handle to it.

public ICoreSessionHandle Fork()

Returns

ICoreSessionHandle

A new handle.

See Also

See Also