Universal Messaging 10.5 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for C# | Examples | Publish / Subscribe using Channel Topics | C# Client: Synchronous Durable Channel Consumer
 
C# Client: Synchronous Durable Channel Consumer
This example shows how to synchronously consume events from a Universal Messaging channel using a durable subscription and a channel iterator.
Usage

namedchanneliterator <rname> <channel name> [name] [start eid] [debug] [count]
[cluster wide] [persistent] [selector]


<Required Arguments>

<rname> - the custom URL to access the realm. Example: nhp://localhost:9000
<channel name> - Channel name parameter for the channel to subscribe to

[Optional Arguments]

[name] - Specifies the unique name to be used for a durable subscription
(default: OS username)
[start eid] - The Event ID to start subscribing from if name subscriber is to be
created (doesn't already exist)
[debug] - The level of output from each event,
0 - none, 1 - summary, 2 - EIDs, 3 - All
[count] - The number of events to wait for before printing out summary
information (default: 1000)
[cluster wide] - Specifies whether the durable subscription is to be used across a cluster
(default: false)
[persistent] - Specifies whether the durable subscription state is to be stored
to disk or held in server memory (default: false)
[selector] - The event filter string to use
Application Source Code
Click here for a code example