An NDoc Documented Class Library

ISession.CreateDurableSubscriber Method (IDestination, String, String, Boolean)

Creates a durable subscriber.

IMessageConsumer CreateDurableSubscriber(
   IDestination topic,
   string name,
   string messageSelector,
   bool noLocal
);

Parameters

topic
The topic on which to receive messages.
name
The subscription name.
messageSelector
A selector on which to filter messages.
noLocal
Used to inhibit receiving messages published by the message consumer's own connection.

Return Value

A new durable subscriber.

Exceptions

Exception Type Condition
MsgException Thrown when an error occurs creating the durable subscriber.
InvalidDestinationException Thrown when an invalid destination is specified.
InvalidSelectorException Thrown when an invalid message selector is specified.

See Also

ISession Interface | webMethods.Msg Namespace | ISession.CreateDurableSubscriber Overload List