Пример #1
0
 public async Task <byte[]> GetProduct(Guid productId, ReleaseNumber release)
 {
     using (var client = new HttpClient())
     {
         return(await client.GetByteArrayAsync(BaseUrl + "Product/GetBinary/" + productId + "?version=" + release));
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
        /// <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);
        }