コード例 #1
0
 void RunNonCyclicMessageHandler(INonCyclicMessageHandler handler, string message, string routingKey, IQueueService queueService)
 {
     ValidateMessageHandler(handler);
     _logger.LogDebug($"Starting processing the message by non-cyclic message handler {handler.GetType().Name}.");
     handler?.Handle(message, routingKey, queueService);
     _logger.LogDebug($"The message has been processed by non-cyclic message handler {handler.GetType().Name}.");
 }
 void RunNonCyclicMessageHandler(INonCyclicMessageHandler handler, BasicDeliverEventArgs eventArgs, string matchingRoute, IQueueService queueService)
 {
     ValidateMessageHandler(handler);
     _logger.LogDebug($"Starting processing the message by non-cyclic message handler {handler.GetType().Name}.");
     handler?.Handle(eventArgs, matchingRoute, queueService);
     _logger.LogDebug($"The message has been processed by non-cyclic message handler {handler.GetType().Name}.");
 }