internal void AppendDateTime(string name, DateTimeOffset?value) { if (value.HasValue) { QueryBuilder.Append($"{name}="); QueryBuilder.Append(DevOpsUtil.ConvertToRestTime(value.Value)); QueryBuilder.Append("&"); } }
static int Compare(TimelineNode x, TimelineNode y) { var xStart = DevOpsUtil.ConvertRestTime(x.TimelineRecord.StartTime); var yStart = DevOpsUtil.ConvertRestTime(y.TimelineRecord.StartTime); if (xStart is null) { if (yStart is null) { return(0); } return(-1); } if (yStart is null) { return(1); } return(xStart.Value.CompareTo(yStart.Value)); }
public BuildKey(Build build) : this(DevOpsUtil.GetOrganization(build), build.Project.Name, build.Id) { }
public static DateTimeOffset?GetStartTime(this Build build) => DevOpsUtil.ConvertRestTime(build.StartTime);
public static BuildArtifactKind GetKind(this BuildArtifact buildArtifact) => DevOpsUtil.GetArtifactKind(buildArtifact);
public static int?GetByteSize(this BuildArtifact buildArtifact) => DevOpsUtil.GetArtifactByteSize(buildArtifact);
public static BuildKey GetBuildKey(this Build build) => DevOpsUtil.GetBuildKey(build);
public static BuildDefinitionInfo GetBuildDefinitionInfo(this Build build) => DevOpsUtil.GetBuildDefinitionInfo(build);
public static BuildInfo GetBuildInfo(this Build build) => DevOpsUtil.GetBuildInfo(build);