/// <summary>
 /// Reads account properties from a HttpWebResponse.
 /// </summary>
 /// <param name="response">The response from which to read the account properties.</param>
 /// <returns>The account properties stored in the headers.</returns>
 internal static AccountProperties ReadAccountProperties(HttpWebResponse response)
 {
     return(AccountProperties.FromWebHeaderCollection(response.Headers));
 }
 /// <summary>
 /// Reads account properties from an HttpResponseMessage object.
 /// </summary>
 /// <param name="response">The response from which to read the account properties.</param>
 /// <returns>The account properties stored in the headers.</returns>
 internal static AccountProperties ReadAccountProperties(HttpResponseMessage response)
 {
     return(AccountProperties.FromHttpResponseHeaders(response.Headers));
 }