Пример #1
0
 public static void Write(Build build, string filePath)
 {
     using (var binaryLogWriter = new BuildLogWriter(filePath))
     {
         binaryLogWriter.WriteNode(build);
     }
 }
Пример #2
0
 public static void Write(Build build, string filePath)
 {
     if (filePath.EndsWith(".xml", StringComparison.OrdinalIgnoreCase))
     {
         XmlLogWriter.WriteToXml(build, filePath);
     }
     else
     {
         BuildLogWriter.Write(build, filePath);
     }
 }