/// <summary>
 /// Adds the lease id.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <param name="leaseId">The lease id.</param>
 internal static void AddLeaseId(this HttpRequestMessage request, string leaseId)
 {
     if (leaseId != null)
     {
         request.AddOptionalHeader("x-ms-lease-id", leaseId);
     }
 }
 /// <summary>
 /// Applies the sequence number condition to the web request.
 /// </summary>
 /// <param name="request">The request to be modified.</param>
 /// <param name="accessCondition">Access condition to be added to the request.</param>
 internal static void ApplySequenceNumberCondition(this HttpRequestMessage request, AccessCondition accessCondition)
 {
     if (accessCondition != null)
     {
         request.AddOptionalHeader(Constants.HeaderConstants.IfSequenceNumberLEHeader, accessCondition.IfSequenceNumberLessThanOrEqual);
         request.AddOptionalHeader(Constants.HeaderConstants.IfSequenceNumberLTHeader, accessCondition.IfSequenceNumberLessThan);
         request.AddOptionalHeader(Constants.HeaderConstants.IfSequenceNumberEqHeader, accessCondition.IfSequenceNumberEqual);
     }
 }
 /// <summary>
 /// Applies the append condition to the web request.
 /// </summary>
 /// <param name="request">The request to be modified.</param>
 /// <param name="accessCondition">Access condition to be added to the request.</param>
 internal static void ApplyAppendCondition(this HttpRequestMessage request, AccessCondition accessCondition)
 {
     if (accessCondition != null)
     {
         request.AddOptionalHeader(Constants.HeaderConstants.IfMaxSizeLessThanOrEqualHeader, accessCondition.IfMaxSizeLessThanOrEqual);
         request.AddOptionalHeader(Constants.HeaderConstants.IfAppendPositionEqualHeader, accessCondition.IfAppendPositionEqual);
     }
 }