subscribe-bookmark-pause
Importing the AMPS client library:
using AMPS.Client;
using AMPS.Client.Exceptions;
Constructing the command:
Command cmd = new Command(Message.Commands.Subscribe)
.setTopic(topic)
// Consistent subId for recovery
.setSubId(subId)
// Pause on a specific bookmark: all subscriptions to be
// resumed together should be entered paused at the same
// bookmark.
.setBookmark(pauseBookmark)
// Set "pause" and any other options needed for the subscription
.setOptions(Message.Options.Pause)
;
The command can now be used in execute or executeAsync.