Пример #1
0
 /// <summary>
 /// Writes a single artifact to a json stream
 /// </summary>
 public void WriteToJsonStream(JsonTextWriter writer)
 {
     writer.WriteStartObject();
     BxlBuild.WriteJsonPropertyToStream(writer, "Hash", Hash);
     BxlBuild.WriteJsonPropertyToStream(writer, "ReportedFile", ReportedFile);
     BxlBuild.WriteJsonPropertyToStream(writer, "ReportedSize", ReportedSize);
     BxlBuild.WriteJsonPropertyToStream(writer, "NumInputPips", NumInputPips);
     BxlBuild.WriteJsonPropertyToStream(writer, "NumOutputPips", NumOutputPips);
     WritePipsToJsonStream(writer, "InputPips", InputPips);
     WritePipsToJsonStream(writer, "OutputPips", OutputPips);
     writer.WriteEndObject();
     // done...
 }
Пример #2
0
 /// <summary>
 /// Writes a meta to a json file using a stream
 /// </summary>
 public void WriteToJsonStream(JsonTextWriter writer, string attrName)
 {
     writer.WritePropertyName(attrName);
     writer.WriteStartObject();
     BxlBuild.WriteJsonPropertyToStream(writer, "BuidId", BuidId);
     BxlBuild.WriteJsonPropertyToStream(writer, "BuildQueue", BuildQueue);
     BxlBuild.WriteJsonPropertyToStream(writer, "BuildStartTimeTicks", BuildStartTimeTicks);
     BxlBuild.WriteJsonPropertyToStream(writer, "BuildDurationMs", BuildDurationMs);
     BxlBuild.WriteJsonPropertyToStream(writer, "TotalPips", TotalPips);
     BxlBuild.WriteJsonPropertyToStream(writer, "TotalArtifacts", TotalArtifacts);
     BxlBuild.WriteJsonPropertyToStream(writer, "EmptyArtifacts", EmptyArtifacts);
     BxlBuild.WriteJsonPropertyToStream(writer, "SampledArtifacts", SampledArtifacts);
     writer.WriteEndObject();
 }
Пример #3
0
 /// <summary>
 /// Writes a single pip to a json stream
 /// </summary>
 public void WriteToJsonStream(JsonTextWriter writer)
 {
     writer.WriteStartObject();
     BxlBuild.WriteJsonPropertyToStream(writer, "SemiStableHash", SemiStableHash);
     BxlBuild.WriteJsonPropertyToStream(writer, "Priority", Priority);
     BxlBuild.WriteJsonPropertyToStream(writer, "Weight", Weight);
     BxlBuild.WriteJsonPropertyToStream(writer, "TagCount", TagCount);
     BxlBuild.WriteJsonPropertyToStream(writer, "DependencyCount", DependencyCount);
     BxlBuild.WriteJsonPropertyToStream(writer, "InputCount", InputCount);
     BxlBuild.WriteJsonPropertyToStream(writer, "OutputCount", OutputCount);
     BxlBuild.WriteJsonPropertyToStream(writer, "SemaphoreCount", SemaphoreCount);
     BxlBuild.WriteJsonPropertyToStream(writer, "StartTimeTicks", StartTimeTicks);
     BxlBuild.WriteJsonPropertyToStream(writer, "Type", Type);
     BxlBuild.WriteJsonPropertyToStream(writer, "ExecutionLevel", ExecutionLevel);
     writer.WriteEndObject();
 }