public object Clone()
        {
            CacheServerConfigSetting config = new CacheServerConfigSetting();

            config.cacheType    = this.cacheType;
            config.InProc       = InProc;
            config.Log          = Log != null ? (Alachisoft.NCache.Config.Dom.Log)Log.Clone() : null;
            config.PerfCounters = PerfCounters != null ? (Alachisoft.NCache.Config.Dom.PerfCounters)PerfCounters.Clone() : null;


            config.Cleanup                    = Cleanup != null ? (Alachisoft.NCache.Config.Dom.Cleanup)Cleanup.Clone() : null;
            config.Storage                    = Storage != null ? (Alachisoft.NCache.Config.Dom.Storage)Storage.Clone() : null;
            config.EvictionPolicy             = EvictionPolicy != null ? (Alachisoft.NCache.Config.Dom.EvictionPolicy)EvictionPolicy.Clone() : null;
            config.ExpirationPolicy           = ExpirationPolicy != null ? (Alachisoft.NCache.Config.Dom.ExpirationPolicy)ExpirationPolicy.Clone() : null;
            config.backingSource              = this.backingSource != null ? (Alachisoft.NCache.Config.Dom.BackingSource) this.backingSource.Clone() : null;
            config.QueryIndices               = QueryIndices != null ? (Alachisoft.NCache.Config.Dom.QueryIndex)QueryIndices.Clone() : null;
            config.Notifications              = Notifications != null ? (Alachisoft.NCache.Config.Dom.Notifications)Notifications.Clone() : null;
            config.SQLDependencyConfig        = SQLDependencyConfig != null ? (Alachisoft.NCache.Config.Dom.SQLDependencyConfig)SQLDependencyConfig.Clone() : null;
            config.SynchronizationStrategy    = SynchronizationStrategy != null ? (Alachisoft.NCache.Config.Dom.SynchronizationStrategy)SynchronizationStrategy.Clone() : null;
            config.cacheTopology              = this.cacheTopology;
            config.DataFormat                 = this.DataFormat;
            config.ClientDeathDetection       = ClientDeathDetection != null ? (ClientDeathDetection)ClientDeathDetection.Clone() : null;
            config.TaskConfiguration          = TaskConfiguration != null ?(TaskConfiguration)TaskConfiguration.Clone() : null;
            config.ClientActivityNotification = ClientActivityNotification != null
                ? (ClientActivityNotification)ClientActivityNotification.Clone()
                : null;
            return(config);
        }
示例#2
0
        public object Clone()
        {
            CacheServerConfigSetting config = new CacheServerConfigSetting();

            config.cacheType    = this.cacheType;
            config.InProc       = InProc;
            config.LastModified = LastModified != null ? (string)LastModified.Clone() : null;
            config.Log          = Log != null ? (Alachisoft.NCache.Config.Dom.Log)Log.Clone() : null;
            config.PerfCounters = PerfCounters != null ? (Alachisoft.NCache.Config.Dom.PerfCounters)PerfCounters.Clone() : null;

#if SERVER
            config.autoBalancing = this.autoBalancing != null ? (Alachisoft.NCache.Config.Dom.AutoLoadBalancing) this.autoBalancing.Clone() : null;
#endif
            config.Cleanup        = Cleanup != null ? (Alachisoft.NCache.Config.Dom.Cleanup)Cleanup.Clone() : null;
            config.Storage        = Storage != null ? (Alachisoft.NCache.Config.Dom.Storage)Storage.Clone() : null;
            config.EvictionPolicy = EvictionPolicy != null ? (Alachisoft.NCache.Config.Dom.EvictionPolicy)EvictionPolicy.Clone() : null;

            config.backingSource           = backingSource != null ? (Alachisoft.NCache.Config.Dom.BackingSource) this.backingSource.Clone() : null;
            config.Security                = Security != null ? (Alachisoft.NCache.Config.Dom.Security)Security.Clone() : null;
            config.Notifications           = Notifications != null ? (Alachisoft.NCache.Config.Dom.Notifications)Notifications.Clone() : null;
            config.SynchronizationStrategy = SynchronizationStrategy != null ? (Alachisoft.NCache.Config.Dom.SynchronizationStrategy)SynchronizationStrategy.Clone() : null;

            config.cacheTopology              = this.cacheTopology;
            config.DataFormat                 = this.DataFormat;
            config.ClientDeathDetection       = ClientDeathDetection != null ? (ClientDeathDetection)ClientDeathDetection.Clone() : null;
            config.ClientActivityNotification = ClientActivityNotification != null
                ? (ClientActivityNotification)ClientActivityNotification.Clone()
                : null;
            return(config);
        }
示例#3
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();
 }
示例#4
0
        public object Clone()
        {
            CacheServerConfigSetting config = new CacheServerConfigSetting();

            config.Name           = Name != null ? (string)Name.Clone() : null;
            config.cacheType      = this.cacheType;
            config.InProc         = InProc;
            config.Alias          = Alias;
            config.LastModified   = LastModified != null ? (string)LastModified.Clone() : null;
            config.Log            = Log != null ? (Alachisoft.NCache.Config.Dom.Log)Log.Clone() : null;
            config.PerfCounters   = PerfCounters != null ? (Alachisoft.NCache.Config.Dom.PerfCounters)PerfCounters.Clone() : null;
            config.autoBalancing  = this.autoBalancing != null ? (Alachisoft.NCache.Config.Dom.AutoLoadBalancing) this.autoBalancing.Clone() : null;
            config.Cleanup        = Cleanup != null ? (Alachisoft.NCache.Config.Dom.Cleanup)Cleanup.Clone() : null;
            config.Storage        = Storage != null ? (Alachisoft.NCache.Config.Dom.Storage)Storage.Clone() : null;
            config.EvictionPolicy = EvictionPolicy != null ? (Alachisoft.NCache.Config.Dom.EvictionPolicy)EvictionPolicy.Clone() : null;
            config.QueryIndices   = QueryIndices != null ? (Alachisoft.NCache.Config.Dom.QueryIndex)QueryIndices.Clone() : null;
            config.cacheTopology  = this.cacheTopology;

            return(config);
        }
        public object Clone()
        {
            CacheServerConfigSetting config = new CacheServerConfigSetting();
            config.Name = Name != null ? (string)Name.Clone() : null;
            config.cacheType = this.cacheType;
            config.InProc = InProc;
            config.Alias = Alias;            
            config.LastModified = LastModified != null ? (string)LastModified.Clone() : null;            
            config.Log = Log != null ? (Alachisoft.NCache.Config.Dom.Log)Log.Clone() : null;
            config.PerfCounters = PerfCounters != null ? (Alachisoft.NCache.Config.Dom.PerfCounters)PerfCounters.Clone() : null;
            config.autoBalancing = this.autoBalancing != null ? (Alachisoft.NCache.Config.Dom.AutoLoadBalancing)this.autoBalancing.Clone() : null;
            config.Cleanup = Cleanup != null ? (Alachisoft.NCache.Config.Dom.Cleanup)Cleanup.Clone() : null;
            config.Storage = Storage != null ? (Alachisoft.NCache.Config.Dom.Storage)Storage.Clone() : null;
            config.EvictionPolicy = EvictionPolicy != null ? (Alachisoft.NCache.Config.Dom.EvictionPolicy)EvictionPolicy.Clone() : null;
            config.QueryIndices = QueryIndices != null ? (Alachisoft.NCache.Config.Dom.QueryIndex)QueryIndices.Clone() : null;
            config.cacheTopology = this.cacheTopology;

            return config;
        }
示例#6
0
 public CacheServerConfig()
 {
     cacheSettings = new CacheServerConfigSetting();
 }
示例#7
0
 public CacheServerConfig()
 {
     cacheSettings = new CacheServerConfigSetting();
 }
示例#8
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     this.cacheSettings = reader.ReadObject() as CacheServerConfigSetting;
     this.cacheDeployment = reader.ReadObject() as CacheDeployment;
     this.configID = reader.ReadDouble();
     cacheIsRunning = reader.ReadBoolean();
     cacheIsRegistered = reader.ReadBoolean();
     licenseIsExpired = reader.ReadBoolean();
 }