Example #1
0
        protected void DeepCloneIntoExistingInstance(GeneratorMappingEntry entry)
        {
            base.DeepCloneIntoExistingInstance(entry);

            entry.GenConfigInfo  = this.GenConfigInfo.Clone();
            entry.GenHistoryInfo = this.GenHistoryInfo.Clone();
        }
Example #2
0
        new public GeneratorMappingEntry Clone()
        {
            GeneratorMappingEntry mappingEntryClone = new GeneratorMappingEntry();

            DeepCloneIntoExistingInstance(mappingEntryClone);
            return(mappingEntryClone);
        }
        /// <summary>
        /// Creates a new GeneratorMappingEntry based on the info in genInfo. The newly created
        /// GeneratorMappingEntry will be stored in this GeneratorMappingManager.
        /// <returns>Returns the id of the newly created entry.</returns>
        /// </summary>
        public int CreateAndAddEntryFromGenInfo(GenEntryConfigInfo genInfo)
        {
            lock (MssComponentHub.criticalSectioinLock)
            {
                IGeneratorMappingEntry mappingEntry = new GeneratorMappingEntry();
                int curId = this.nextId;
                this.nextId++;

                InitializeEntryFromGenInfo(genInfo, curId, mappingEntry);

                //Add new mapping entry to list
                this.mappingEntryList.Add(mappingEntry);

                return(mappingEntry.Id);
            }
        }
 public new GeneratorMappingEntry Clone()
 {
     GeneratorMappingEntry mappingEntryClone = new GeneratorMappingEntry();
     DeepCloneIntoExistingInstance(mappingEntryClone);
     return mappingEntryClone;
 }
        protected void DeepCloneIntoExistingInstance(GeneratorMappingEntry entry)
        {
            base.DeepCloneIntoExistingInstance(entry);

            entry.GenConfigInfo = this.GenConfigInfo.Clone();
            entry.GenHistoryInfo = this.GenHistoryInfo.Clone();
        }