Fields

Methods

Subscribes to a weak event by using one single method. This method also takes care of automatic unsubscription of the event. This method subscribes to the which does not follow theEventHandler{TEventArgs} convention.

Parameters

Name

Description

target

Instance subscribing to the event, should benull for static event handlers.

source

The source of the event, should benull for static events.

handler

The handler to execute when the event occurs.

throwWhenSubscriptionFails

if set totrue, throw an exception when subscription fails (does not apply to argument checks).

Subscribes to a weak event by using one single method. This method also takes care of automatic unsubscription of the event. This method subscribes to the which does not follow theEventHandler{TEventArgs} convention.

Parameters

Name

Description

target

Instance subscribing to the event, should benull for static event handlers.

source

The source of the event, should benull for static events.

eventName

Name of the event.

handler

The handler to execute when the event occurs.

throwWhenSubscriptionFails

if set totrue, throw an exception when subscription fails (does not apply to argument checks).