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