コード例 #1
0
 /// <summary>
 /// Gets the max value.
 /// </summary>
 public static RequestLevel GetMax(RequestLevel requestLevel1, RequestLevel requestLevel2)
 {
     return(requestLevel1.Value > requestLevel2.Value ? requestLevel1 : requestLevel2);
 }
コード例 #2
0
 /// <summary>
 /// Sets the lowest level that is permitted to request the image from.
 /// </summary>
 /// <param name="requestLevel">
 /// The lowest request level that is allowed.
 /// </param>
 /// <returns>The updated builder instance.</returns>
 public ImageRequestBuilder SetLowestPermittedRequestLevel(RequestLevel requestLevel)
 {
     LowestPermittedRequestLevel = requestLevel;
     return(this);
 }