Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 2ee9015

Browse files
author
Anton Vorontsov
committed
Added default value for switch inside MessageHandlingService
1 parent f1f438b commit 2ee9015

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/RabbitMQ.Client.Core.DependencyInjection/MessageHandlingService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ async Task ProcessMessage(string exchange, string message, IQueueService queueSe
153153
case IAsyncNonCyclicMessageHandler asyncNonCyclicMessageHandler:
154154
await RunAsyncNonCyclicMessageHandler(asyncNonCyclicMessageHandler, message, orderedContainer.MatchingRoute, queueService);
155155
break;
156+
default:
157+
throw new NotSupportedException($"The type {orderedContainer.MessageHandler.GetType()} of message handler is not supported.");
156158
}
157159

158160
executedHandlers.Add(handlerType);

0 commit comments

Comments
 (0)