示例#1
0
 public void Copy(IPSSetting setting)
 {
     _serverAddr    = setting.ServerAddr;
     _instructPort  = setting.InstructPort;
     _eventPort     = setting.EventPort;
     _isLdapEnabled = setting.IsLDAPEnabled;
     _ldapPort      = setting.LDAPPort;
     _ldapAddr      = setting.LDAPServerAddr;
     _ldapUser      = setting.LDAPUser;
     _ldapPassword  = setting.LDAPPassowrd;
 }
示例#2
0
        public object Clone()
        {
            var rVal = new IPSSetting();

            rVal._serverAddr    = _serverAddr;
            rVal._instructPort  = _instructPort;
            rVal._eventPort     = _eventPort;
            rVal._isLdapEnabled = _isLdapEnabled;
            rVal._ldapAddr      = _ldapAddr;
            rVal._ldapPort      = _ldapPort;
            rVal._ldapUser      = _ldapUser;
            rVal._ldapPassword  = _ldapPassword;
            return(rVal);
        }