internal static bool DoClearCache(bool bClearFiles, bool bClearCookies) { EventHandler <CacheClearEventArgs> onClearCache = FiddlerApplication.OnClearCache; if (onClearCache == null) { return(true); } CacheClearEventArgs cacheClearEventArgs = new CacheClearEventArgs(bClearFiles, bClearCookies); onClearCache(null, cacheClearEventArgs); return(!cacheClearEventArgs.Cancel); }
private static void FiddlerApplication_OnClearCache(object sender, CacheClearEventArgs e) { }
internal static bool DoClearCache(bool bClearFiles, bool bClearCookies) { EventHandler<CacheClearEventArgs> onClearCache = OnClearCache; if (onClearCache == null) { return true; } CacheClearEventArgs e = new CacheClearEventArgs(bClearFiles, bClearCookies); onClearCache(null, e); return !e.Cancel; }
internal void OnOnClearCache(object sender, CacheClearEventArgs e) { EventHandler<CacheClearEventArgs> handler = OnClearCache; if (handler != null) handler(this, e); }