private void OnVpnProtocolChanged(object sender, VpnProtocolChangedEventArgs e)
 {
     if (!BlockedApiHandlerProtocolPreferencesChangeObserver.IsObfuscatedProtocol(e.get_Protocol()) || !this._isPreviousProtocolObfuscated)
     {
         this._blockedApiHandler.ReverseUrls();
     }
     this._isPreviousProtocolObfuscated = BlockedApiHandlerProtocolPreferencesChangeObserver.IsObfuscatedProtocol(e.get_Protocol());
 }
 public void StartObserving()
 {
     this._isPreviousProtocolObfuscated = BlockedApiHandlerProtocolPreferencesChangeObserver.IsObfuscatedProtocol(this._userPreferences.get_VpnProtocol());
     if (this._isPreviousProtocolObfuscated)
     {
         this._blockedApiHandler.ReverseUrls();
     }
     this._userPreferences.add_VpnProtocolChanged(new EventHandler <VpnProtocolChangedEventArgs>(this.OnVpnProtocolChanged));
 }