How to configure multiple selector-filters with .NET Client

Solution Verified - Updated -

Issue

  • How to configure multiple selector-filters with .NET Client?
    • The following code doesn't work as expected.
Map filters = new Map();
filters.Add(new Symbol("f1"), new DescribedValue(new Symbol("apache.org:selector-filter:string"), "color like 'red%'"));
filters.Add(new Symbol("f2"), new DescribedValue(new Symbol("apache.org:selector-filter:string"), "shape = ''triangle"));
receiver = new ReceiverLink(session, "recv-1", new Source()  { Address = queueName, FilterSet = filters }, null);

Environment

  • Red Hat AMQ Client 2.3.0
    • .NET Client / amqpnetlite-sdk-2.1.6.0(.NET Framework 4.5) on Windows 2012 Server R2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content