public void Publish(ProcessingResult result)
        {
            try
            {
                var filePath = ResolveFilePath(result.Payload);

                SaveFile(filePath, result.Print());
            }
            catch (Exception e)
            {
                _logger.LogError("Error writing result {0}:{1}", e.Message, e.StackTrace);
            }
        }
 public void Publish(ProcessingResult result)
 {
     Console.WriteLine(result.Print());
 }