public static ArtifactFileInfo GetBuildArtifact(TCConnection connection, string href) { RestRequest request = new RestRequest(href, Method.GET); ArtifactFileInfo fileInfo = connection.CallRequest<ArtifactFileInfo>(request); if (fileInfo.IsFile == true) { RestRequest requestContent = new RestRequest(fileInfo.Content.Href, Method.GET); fileInfo.Content = connection.CallRequest<ArtifactContentInfo>(requestContent); } return fileInfo; }
public static BuildTypeInfo GetBuildType(this ProjectDetailsInfo projectDetails, TCConnection connection) { return connection.CallRequest<BuildTypeInfo>(projectDetails.Href); }
public static BuildTagCollectionInfo GetBuildTagCollection(TCConnection connection, string locatorBuildValue, Locator locator) { RestRequest request = new RestRequest( connection.UrlResolver.ResolveURL<BuildTagCollectionInfo>(locatorBuildValue, locator), Method.GET); return connection.CallRequest<BuildTagCollectionInfo>(request); }