//AfterSessionComplete void FiddlerApplication_AfterSessionComplete(Fiddler.Session oSession) { if (RKey.GetValue("RegisterTraffic").ToString() == "true") { Thread myThread = new Thread(() => InsertUrl(oSession.url, true)); myThread.Start(); } }
private string[] instanciasInstaladas() { Microsoft.Win32.RegistryKey RKey; RKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Microsoft SQL Server", false); string[] instancias; instancias = ((string[])RKey.GetValue("InstalledInstances")); return(instancias); }
//Before Request void FiddlerApplication_BeforeRequest(Fiddler.Session oSession) { string url = oSession.url; if (CheckUrl(oSession) == false || CheckDomain(oSession) == false) { //start a new thread to insert the rejected url if (RKey.GetValue("RegisterTraffic").ToString() == "true") { Thread myThread = new Thread(() => InsertUrl(url, false)); myThread.Start(); } //Redirect from the blocked website oSession.url = RedirectUrl; } }