Skip to content

Commit 68184cb

Browse files
author
Simon MacMullen
committed
Blow up on unsolicited message delivery - .net client.
1 parent de6950f commit 68184cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,9 @@ public void HandleBasicDeliver(string consumerTag,
360360
if (consumer == null)
361361
{
362362
if (DefaultConsumer == null) {
363-
return;
363+
throw new InvalidOperationException("Unsolicited delivery -" +
364+
" see IModel.DefaultConsumer to handle this" +
365+
" case.");
364366
}
365367
else {
366368
consumer = DefaultConsumer;

0 commit comments

Comments
 (0)