ExternalDelayingExplorer.CustomDBSchedulerState.Clone C# (CSharp) Méthode

Clone() public méthode

public Clone ( bool isCloneForFrontier ) : ZingerSchedulerState
isCloneForFrontier bool
Résultat Microsoft.Zing.ZingerSchedulerState
        public override ZingerSchedulerState Clone(bool isCloneForFrontier)
        {
            CustomDBSchedulerState cloned = new CustomDBSchedulerState(this);
            if (isCloneForFrontier)
            {
                cloned.EnabledProcessesWithPriority = new Dictionary<int, int>();
                foreach (var item in EnabledProcessesWithPriority)
                {
                    cloned.EnabledProcessesWithPriority.Add(item.Key, item.Value);
                }
                cloned.sortedProcesses = new List<int>();
                foreach (var item in sortedProcesses)
                {
                    cloned.sortedProcesses.Add(item);
                }
            }
            return cloned;
        }