private AddCacheDependency ( System.Web.Caching.CacheDependency dependencies ) : void | ||
dependencies | System.Web.Caching.CacheDependency | |
return | void |
public override void AddCacheDependency(params CacheDependency[] dependencies) { _httpResponse.AddCacheDependency(dependencies); }
public void Methods_Deny_Unrestricted () { HttpResponse response = new HttpResponse (writer); response.AddCacheItemDependencies (new ArrayList ()); response.AddCacheItemDependency (String.Empty); response.AddFileDependencies (new ArrayList ()); response.AddFileDependency (fname); response.AddCacheDependency (new CacheDependency[0]); response.AddCacheItemDependencies (new string [0]); response.AddFileDependencies (new string [0]); try { response.AppendCookie (new HttpCookie ("mono")); } catch (NullReferenceException) { // ms } try { Assert.IsNull (response.ApplyAppPathModifier (null), "ApplyAppPathModifier"); } catch (NullReferenceException) { // ms } try { response.Clear (); } catch (NullReferenceException) { // ms } try { response.ClearContent (); } catch (NullReferenceException) { // ms } try { response.ClearHeaders (); } catch (NullReferenceException) { // ms } try { response.Redirect ("http://www.mono-project.com"); } catch (NullReferenceException) { // ms } try { response.Redirect ("http://www.mono-project.com", false); } catch (NullReferenceException) { // ms } try { response.SetCookie (new HttpCookie ("mono")); } catch (NullReferenceException) { // ms } response.Write (String.Empty); response.Write (Char.MinValue); response.Write (new char[0], 0, 0); response.Write (this); response.WriteSubstitution (new HttpResponseSubstitutionCallback (Callback)); response.Flush (); response.Close (); try { response.End (); } catch (NullReferenceException) { // ms } }
public virtual void AddCacheInvalidation(HttpResponse response) { response.AddCacheDependency(new ContentCacheDependency(persister)); response.Cache.AddValidationCallback(ValidateCacheRequest, null); }
public override void AddCacheDependency(params CacheDependency [] dependencies) { w.AddCacheDependency(dependencies); }
protected virtual void AddCacheDependency(HttpResponse response, ContentCacheDependency dependency) { if (dependency != null) response.AddCacheDependency(dependency); response.Cache.AddValidationCallback(ValidateCacheRequest, null); }