public static SubscriptionToken Subscribe( Action<JobMessageEventArgs<JobMessage>> action, bool keepSubscriberAlive )
Public Shared Function Subscribe( _ ByVal action As Action(Of JobMessageEventArgs(Of JobMessage)), _ Optional ByVal keepSubscriberAlive As Boolean _ ) As SubscriptionToken
Parameters
- action
- The action to call when subscribing
- keepSubscriberAlive
- A boolean indicating whether or not to keep the subscriber alive. Default is false
Return Value
the subscription token for the message