public SubscriptionToken Register( Func<TPayload,Task> action, bool keepSubscriberAlive )
Public Function Register( _ ByVal action As Func(Of TPayload,Task), _ 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.