Summary
Subscribes to an event on an object using a weak subscription.
Syntax
public static void Subscribe<TTarget, TEventArgs>(TTarget target, string eventName, IWeakSubscriber<TEventArgs> subscriber)
where TEventArgs : EventArgs
Type Parameters
Name |
Description |
TTarget |
The type of the target. |
TEventArgs |
The type of the event arguments. |
Parameters
Name |
Type |
Description |
target |
TTarget |
The event source. |
eventName |
string |
The name of the event. |
subscriber |
IWeakSubscriber<TEventArgs> |
The subscriber. |
Return Value