public async Task <byte[]> GetProduct(Guid productId, ReleaseNumber release) { using (var client = new HttpClient()) { return(await client.GetByteArrayAsync(BaseUrl + "Product/GetBinary/" + productId + "?version=" + release)); } }
public override int GetHashCode() { unchecked { int result = (ReleaseNumber != null ? ReleaseNumber.GetHashCode() : 0); result = (result * 397) ^ (ReleaseFiInstructions != null ? ReleaseFiInstructions.GetHashCode() : 0); result = (result * 397) ^ (TeamName != null ? TeamName.GetHashCode() : 0); result = (result * 397) ^ (PrePatEmail != null ? PrePatEmail.GetHashCode() : 0); result = (result * 397) ^ (ServiceNowTicketLink != null ? ServiceNowTicketLink.GetHashCode() : 0); return(result); } }
/// <summary> /// Creates the string value of the SemVersionPreRelease object /// </summary> /// <returns></returns> public string Tag() { string strIncrementType = ""; if (IncrementType == IncrementTypeEnum.Major) { strIncrementType = "c"; } else if (IncrementType == IncrementTypeEnum.Minor) { strIncrementType = "b"; } else if (IncrementType == IncrementTypeEnum.Patch) { strIncrementType = "a"; } string value = ReleaseType + "-" + ReleaseNumber.ToString("D4") + strIncrementType; return(value); }