private void OnMessageConsume(Message message) { _logger.LogInformation("Get input message: " + message.ChainId.Value); var processor = _processorFactory.MakeProcessorFor(message); processor.Execute(); _logger.LogInformation("Send output message: " + message.ChainId.Value); }
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); } }