Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HttpRequestCachePolicy() [3/6]

System.Net.Cache.HttpRequestCachePolicy.HttpRequestCachePolicy ( HttpCacheAgeControl cacheAgeControl,
TimeSpan ageOrFreshOrStale )
inline

Definition at line 46 of file HttpRequestCachePolicy.cs.

47 : this(HttpRequestCacheLevel.Default)
48 {
49 switch (cacheAgeControl)
50 {
51 case HttpCacheAgeControl.MinFresh:
52 _minFresh = ageOrFreshOrStale;
53 break;
54 case HttpCacheAgeControl.MaxAge:
55 _maxAge = ageOrFreshOrStale;
56 break;
57 case HttpCacheAgeControl.MaxStale:
58 _maxStale = ageOrFreshOrStale;
59 break;
60 default:
61 throw new ArgumentException(System.SR.Format(System.SR.net_invalid_enum, "HttpCacheAgeControl"), "cacheAgeControl");
62 }
63 }
static string net_invalid_enum
Definition SR.cs:40
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.Net.Cache.HttpRequestCachePolicy._maxAge, System.Net.Cache.HttpRequestCachePolicy._maxStale, System.Net.Cache.HttpRequestCachePolicy._minFresh, System.SR.Format(), and System.SR.net_invalid_enum.