Skip to content

SubscriptionBuilder

A builder to help in creation of a new Subscription.

Remarks:

A new builder can be created by using the CreateSubscriptionBuilder function!

Methods:

SubscriptionBuilder WithAcknowledgmentMode(AcknowledgmentModes)

Sets the acknowledgment mode for the subscription.

WithAcknowledgmentCallback(Client, Subscription, IncomingFrame})

Sets a callback to be invoked upon acknowledgment of the subscription.

WithCallback(Client, Subscription, Message})

Sets a callback to be invoked when a message is received on this subscription.

SubscriptionBuilder WithHeader(String, String)

Adds a custom header to the subscription.

Void BeginSubscribe()

Begins the process of subscribing to the destination.

Task<ValueTuple<Subscription, IncomingFrame>> SubscribeAsync()

Begins the process of subscribing to the destination.

Comments