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
ClusterBuilderThe builder.
traceSource
TraceSourceThe trace source.
Returns
- ClusterBuilder
A reconfigured cluster builder.