Table of Contents

Constructor ReflectionEventSubscriber

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

ReflectionEventSubscriber(object, string, BindingFlags)

Initializes a new instance of the ReflectionEventSubscriber class.

public ReflectionEventSubscriber(object instance, string methodName = "Handle", BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.Public)

Parameters

instance object

The instance.

methodName string

Name of the method to match against.

bindingFlags BindingFlags

The binding flags.