Table of Contents

Class TraceSourceEventSubscriber

Namespace
MongoDB.Driver.Core.Events.Diagnostics
Assembly
MongoDB.Driver.dll

An event subscriber that writes to a trace source.

public sealed class TraceSourceEventSubscriber : IEventSubscriber
Inheritance
TraceSourceEventSubscriber
Implements
Inherited Members

Constructors

TraceSourceEventSubscriber(TraceSource)

Initializes a new instance of the TraceSourceEventSubscriber class.

Methods

TryGetEventHandler<TEvent>(out Action<TEvent>)

Tries to get an event handler for an event of type TEvent.