Method TryGetEventHandler
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
MongoDB.Driver.Core.Events.Diagnostics
Assembly
MongoDB.Driver.dll
TryGetEventHandler(out Action)
Tries to get an event handler for an event of type TEvent.
public bool TryGetEventHandler<TEvent>(out Action<TEvent> handler)Parameters
handler Action
The handler.
Returns
true if this subscriber has provided an event handler; otherwise false.
Type Parameters
TEvent
The type of the event.