Exemple #1
0
        public static EXEInstanceIDSeed GetInstance()
        {
            if (EXEInstanceIDSeed.Instance == null)
            {
                EXEInstanceIDSeed.Instance = new EXEInstanceIDSeed();
            }

            return(EXEInstanceIDSeed.Instance);
        }
Exemple #2
0
        public CDClassInstance CreateClassInstance()
        {
            long NewInstanceID = EXEInstanceIDSeed.GetInstance().GenerateID();

            CDClassInstance Instance = new CDClassInstance(NewInstanceID, this.Attributes);

            this.Instances.Add(Instance);

            return(Instance);
        }
Exemple #3
0
 private EXEInstanceIDSeed()
 {
     EXEInstanceIDSeed.Instance = null;
     this.Seed = 0;
     this.Lock = new Object();
 }