Table of Contents

Method TraceWith

Namespace
MongoDB.Driver.Core.Configuration
Assembly
MongoDB.Driver.Core.dll

TraceWith(ClusterBuilder, TraceSource)

Configures the cluster to trace events to the specified traceSource.

public static ClusterBuilder TraceWith(this ClusterBuilder builder, TraceSource traceSource)

Parameters

builder ClusterBuilder

The builder.

traceSource TraceSource

The trace source.

Returns

ClusterBuilder

A reconfigured cluster builder.