Inheritance: SnapshotAwarePreferenceBase, IProtocolOptions
Example #1
0
        public ProtocolOptions Import(ProtocolOptions src)
        {
            Debug.Assert(src._folder.Id == _folder.Id);

            //SSH関係
            _retainsPassphrase = ConvertItem(src._retainsPassphrase);

            _cipherAlgorithmOrder           = ConvertItem(src._cipherAlgorithmOrder);
            _cipherAlgorithmOrderWasChecked = false;
            _hostKeyAlgorithmOrder          = ConvertItem(src._hostKeyAlgorithmOrder);
            _sshWindowSize = ConvertItem(src._sshWindowSize);
            _sshCheckMAC   = ConvertItem(src._sshCheckMAC);
            _hostKeyCheckerVerifierTypeName = ConvertItem(src._hostKeyCheckerVerifierTypeName);
            _logSSHEvents = ConvertItem(src._logSSHEvents);

            _socketConnectTimeout = ConvertItem(src._socketConnectTimeout);
            _ipVersionPriority    = ConvertItem <IPVersionPriority>(src._ipVersionPriority);

            //SOCKS関係
            _useSocks        = ConvertItem(src._useSocks);
            _socksServer     = ConvertItem(src._socksServer);
            _socksPort       = ConvertItem(src._socksPort);
            _socksAccount    = ConvertItem(src._socksAccount);
            _socksPassword   = ConvertItem(src._socksPassword);
            _socksNANetworks = ConvertItem(src._socksNANetworks);

            _socketBufferSize       = ConvertItem(src._socketBufferSize);
            _readSerializedPassword = ConvertItem(src._readSerializedPassword);
            _savePassword           = ConvertItem(src._savePassword);
            _savePlainTextPassword  = ConvertItem(src._savePlainTextPassword);

            return(this);
        }
Example #2
0
 public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) {
     _originalFolder = folder;
     _originalOptions = new ProtocolOptions(folder);
     _originalOptions.DefineItems(builder);
 }
Example #3
0
        public ProtocolOptions Import(ProtocolOptions src) {
            Debug.Assert(src._folder.Id == _folder.Id);

            //SSH関係
            _retainsPassphrase = ConvertItem(src._retainsPassphrase);

            _cipherAlgorithmOrder = ConvertItem(src._cipherAlgorithmOrder);
            _cipherAlgorithmOrderWasChecked = false;
            _hostKeyAlgorithmOrder = ConvertItem(src._hostKeyAlgorithmOrder);
            _sshWindowSize = ConvertItem(src._sshWindowSize);
            _sshCheckMAC = ConvertItem(src._sshCheckMAC);
            _hostKeyCheckerVerifierTypeName = ConvertItem(src._hostKeyCheckerVerifierTypeName);
            _logSSHEvents = ConvertItem(src._logSSHEvents);

            _socketConnectTimeout = ConvertItem(src._socketConnectTimeout);
            _ipVersionPriority = ConvertItem<IPVersionPriority>(src._ipVersionPriority);

            //SOCKS関係
            _useSocks = ConvertItem(src._useSocks);
            _socksServer = ConvertItem(src._socksServer);
            _socksPort = ConvertItem(src._socksPort);
            _socksAccount = ConvertItem(src._socksAccount);
            _socksPassword = ConvertItem(src._socksPassword);
            _socksNANetworks = ConvertItem(src._socksNANetworks);

            _socketBufferSize = ConvertItem(src._socketBufferSize);
            _readSerializedPassword = ConvertItem(src._readSerializedPassword);
            _savePassword = ConvertItem(src._savePassword);
            _savePlainTextPassword = ConvertItem(src._savePlainTextPassword);

            return this;
        }
Example #4
0
 public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder)
 {
     _originalFolder  = folder;
     _originalOptions = new ProtocolOptions(folder);
     _originalOptions.DefineItems(builder);
 }