-
Good morning
What is the corresponding .net code? |
Beta Was this translation helpful? Give feedback.
Answered by
Havret
Jan 16, 2023
Replies: 1 comment
-
Hi @evarrica, To filter messages you need to specify the await using IConnection connection = await CreateConnection();
var address = Guid.NewGuid().ToString();
await using IConsumer redMessageConsumer = await connection.CreateConsumerAsync(new ConsumerConfiguration
{
Address = address,
RoutingType = RoutingType.Anycast,
FilterExpression = "color = 'red'"
});
await using IConsumer blueMessageConsumer = await connection.CreateConsumerAsync(new ConsumerConfiguration
{
Address = address,
RoutingType = RoutingType.Anycast,
FilterExpression = "color = 'blue'"
}); You can find more examples here. Best, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
evarrica
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @evarrica,
To filter messages you need to specify the
FilterExpression
:You can find more examples here.
Best,
Havret