Table of Contents

Method TryGetEventHandler

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

TryGetEventHandler<TEvent>(out Action<TEvent>)

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

bool TryGetEventHandler<TEvent>(out Action<TEvent> handler)

Parameters

handler Action<TEvent>

The handler.

Returns

bool

true if this subscriber has provided an event handler; otherwise false.

Type Parameters

TEvent

The type of the event.