Exemplo n.º 1
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     this.cacheSettings   = reader.ReadObject() as CacheServerConfigSetting;
     this.cacheDeployment = reader.ReadObject() as CacheDeployment;
     this.name            = reader.ReadObject() as string;
     cacheIsRunning       = reader.ReadBoolean();
     cacheIsRegistered    = reader.ReadBoolean();
     licenseIsExpired     = reader.ReadBoolean();
 }
Exemplo n.º 2
0
        public object Clone()
        {
            CacheDeployment config = new CacheDeployment();

            config.clientNodes = clientNodes != null?clientNodes.Clone() as Alachisoft.NCache.Config.Dom.ClientNodes : null;

            config.serverNodes = serverNodes != null?serverNodes.Clone() as ServersNodes : null;

            return(config);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
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);
        }