Exemplo n.º 1
0
        public static EXEInstanceIDSeed GetInstance()
        {
            if (EXEInstanceIDSeed.Instance == null)
            {
                EXEInstanceIDSeed.Instance = new EXEInstanceIDSeed();
            }

            return(EXEInstanceIDSeed.Instance);
        }
Exemplo n.º 2
0
        public CDClassInstance CreateClassInstance()
        {
            long NewInstanceID = EXEInstanceIDSeed.GetInstance().GenerateID();

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

            this.Instances.Add(Instance);

            return(Instance);
        }
Exemplo n.º 3
0
 private EXEInstanceIDSeed()
 {
     EXEInstanceIDSeed.Instance = null;
     this.Seed = 0;
     this.Lock = new Object();
 }