Skip to content

Commit de6950f

Browse files
author
Simon MacMullen
committed
Support default consumer in the .net client.
1 parent e1c36bd commit de6950f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

projects/client/RabbitMQ.Client/src/client/impl/ModelBase.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,12 @@ public void HandleBasicDeliver(string consumerTag,
359359
}
360360
if (consumer == null)
361361
{
362-
// FIXME: what is an appropriate thing to do here?
363-
throw new NotSupportedException("FIXME unsolicited delivery for consumer tag " + consumerTag);
362+
if (DefaultConsumer == null) {
363+
return;
364+
}
365+
else {
366+
consumer = DefaultConsumer;
367+
}
364368
}
365369

366370
try {

0 commit comments

Comments
 (0)