An NDoc Documented Class Library

ISession.CreateConsumer Method (IDestination, String, Boolean)

Creates a message consumer.

IMessageConsumer CreateConsumer(
   IDestination destination,
   string messageSelector,
   bool noLocal
);

Parameters

destination
The destination on which to receive messages.
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 message consumer.

Exceptions

Exception Type Condition
MsgException Thrown when an error occurs creating the message consumer.
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.CreateConsumer Overload List