protected internal SubscriptionToken Register( TSubscriptionParam param, Func<TPayload,Task> action, bool keepSubscriberAlive )
Protected Friend Function Register( _ ByVal param As TSubscriptionParam, _ ByVal action As Func(Of TPayload,Task), _ Optional ByVal keepSubscriberAlive As Boolean _ ) As SubscriptionToken
Parameters
- param
- The type of the parameter passed to subscribe
- 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.