示例#1
0
        public object Clone()
        {
            CacheServerConfig config = new CacheServerConfig();

            config.cacheSettings    = CacheSettings != null ? (CacheServerConfigSetting)CacheSettings.Clone() : null;
            config.cacheDeployment  = CacheDeployment != null ? (CacheDeployment)CacheDeployment.Clone() : null;
            config.Name             = Name != null ? (string)Name.Clone() : null;
            config.IsRegistered     = this.IsRegistered;
            config.IsRunning        = this.IsRunning;
            config.licenseIsExpired = this.licenseIsExpired;

            return(config);
        }
示例#2
0
        public object Clone()
        {
            CacheServerConfig config = new CacheServerConfig();

            config.cacheSettings    = CacheSettings != null ? (CacheServerConfigSetting)CacheSettings.Clone() : null;
            config.cacheDeployment  = CacheDeployment != null ? (CacheDeployment)CacheDeployment.Clone() : null;
            config.ConfigID         = ConfigID;
            config.configVersion    = configVersion;
            config.IsRegistered     = this.IsRegistered;
            config.IsRunning        = this.IsRunning;
            config.licenseIsExpired = this.licenseIsExpired;
            config.name             = this.name;
            config._alias           = this._alias;

            return(config);
        }