示例#1
0
 private void OnMessageConsume(Message message)
 {
     try
     {
         _logger.Begin(message);
         var processor = _processorFactory.MakeProcessorFor(message);
         processor.Execute();
     }
     catch (Exception exp)
     {
         _logger.Error(message, exp);
     }
     finally
     {
         _logger.End(message);
     }
 }