Beispiel #1
0
        internal bool Detach(bool bDontCheckIfAttached)
        {
            if (!bDontCheckIfAttached && !this._bIsAttached)
            {
                return(true);
            }
            if (CONFIG.bIsViewOnly)
            {
                return(true);
            }
            bool result;

            try
            {
                this._bDetaching = true;
                Proxy._setDynamicRegistryKey(false);
                if (this.oAllConnectoids.UnhookAllConnections())
                {
                    this._bIsAttached = false;
                    FiddlerApplication.OnFiddlerDetach();
                    this.WriteAutoProxyPACFile(false);
                    return(true);
                }
                result = false;
            }
            finally
            {
                this._bDetaching = false;
            }
            return(result);
        }
Beispiel #2
0
 public bool Detach()
 {
     if (!this._bIsAttached)
     {
         return(true);
     }
     if (CONFIG.bIsViewOnly)
     {
         return(true);
     }
     _setDynamicRegistryKey(false);
     if (this.oAllConnectoids.UnhookAllConnections())
     {
         this._bIsAttached = false;
         FiddlerApplication.OnFiddlerDetach();
         this.WriteAutoProxyPACFile(false);
         return(true);
     }
     return(false);
 }