1 write to cacheProfile
System.ServiceModel.Web (1)
System\ServiceModel\Web\CachingParameterInspector.cs (1)
51
this.
cacheProfile
= cacheSettings.OutputCacheProfiles[cacheProfileName];
30 references to cacheProfile
System.ServiceModel.Web (30)
System\ServiceModel\Web\CachingParameterInspector.cs (30)
52
if (this.
cacheProfile
== null)
58
if (this.
cacheProfile
.Location != OutputCacheLocation.None)
61
if (this.
cacheProfile
.Duration == -1)
63
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.CacheProfileValueMissing, this.
cacheProfile
.Name, "Duration")));
65
if (this.
cacheProfile
.VaryByParam == null)
67
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR2.GetString(SR2.CacheProfileValueMissing, this.
cacheProfile
.Name, "VaryByParam")));
71
if (string.Equals(this.
cacheProfile
.SqlDependency, "CommandNotification", StringComparison.OrdinalIgnoreCase))
76
if (!string.IsNullOrEmpty(this.
cacheProfile
.SqlDependency))
78
ParseSqlDependencyString(
cacheProfile
.SqlDependency);
87
if (this.
cacheProfile
!= null &&
88
this.
cacheProfile
.Enabled &&
270
if (this.
cacheProfile
.NoStore)
277
if ((int)(this.
cacheProfile
.Location) == -1)
283
switch (this.
cacheProfile
.Location)
305
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR2.GetString(SR2.CacheProfileLocationNotSupported, this.
cacheProfile
.Location)));
309
if (this.
cacheProfile
.Location != OutputCacheLocation.None)
311
cache.SetExpires(HttpContext.Current.Timestamp.AddSeconds((double)this.
cacheProfile
.Duration));
312
cache.SetMaxAge(new TimeSpan(0, 0, this.
cacheProfile
.Duration));
316
if (this.
cacheProfile
.Location != OutputCacheLocation.Client)
318
if (!string.IsNullOrEmpty(this.
cacheProfile
.VaryByContentEncoding))
320
foreach (string contentEncoding in this.
cacheProfile
.VaryByContentEncoding.Split(seperatorChar))
326
if (!string.IsNullOrEmpty(this.
cacheProfile
.VaryByHeader))
328
foreach (string header in this.
cacheProfile
.VaryByHeader.Split(seperatorChar))
334
if (this.
cacheProfile
.Location != OutputCacheLocation.Downstream)
336
if (!string.IsNullOrEmpty(this.
cacheProfile
.VaryByCustom))
338
cache.SetVaryByCustom(this.
cacheProfile
.VaryByCustom);
341
if (!string.IsNullOrEmpty(this.
cacheProfile
.VaryByParam))
343
foreach (string parameter in
cacheProfile
.VaryByParam.Split(seperatorChar))
349
if (!string.IsNullOrEmpty(this.
cacheProfile
.SqlDependency))
351
CacheDependency cacheDependency = this.CreateSingleCacheDependency(
cacheProfile
.SqlDependency);