protected internal SubscriptionToken Register( Action<TPayload> action, bool keepSubscriberAlive )
Protected Friend Function Register( _ ByVal action As Action(Of TPayload), _ Optional ByVal keepSubscriberAlive As Boolean _ ) As SubscriptionToken
Parameters
- action
- The delegate that gets executed when the event is published.
- keepSubscriberAlive
- Set to true to maintain a strong reference
Return Value
A SubscriptionToken that uniquely identifies the added subscription.