Пример #1
0
 public override void Dispose()
 {
     if (mTimer != null)
     {
         mTimer.Dispose();
         mTimer = null;
     }
 }
Пример #2
0
 public override void Dispose()
 {
     if (mTimer != null)
     {
         mTimer.Dispose();
         mTimer = null;
     }
     if (ObjectId != ObjectGuid.InvalidObjectGuid)
     {
         Simulator.DestroyObject(ObjectId);
         ObjectId = ObjectGuid.InvalidObjectGuid;
     }
     base.Dispose();
 }
Пример #3
0
        public override void Dispose()
        {
            if (mTimer != null)
            {
                mTimer.Dispose();
                mTimer = null;
            }

            if (base.ObjectId.mValue != 0)
            {
                Simulator.DestroyObject(base.ObjectId);
                base.ObjectId = ObjectGuid.InvalidObjectGuid;
            }

            base.Dispose();
        }
Пример #4
0
        public override void Dispose()
        {
            try
            {
                if (mTimer != null)
                {
                    mTimer.Dispose();
                    mTimer = null;
                }

                if (ObjectId != ObjectGuid.InvalidObjectGuid)
                {
                    Simulator.DestroyObject(ObjectId);
                    ObjectId = ObjectGuid.InvalidObjectGuid;
                }
            }
            catch (Exception e)
            {
                Common.Exception("Dispose", e);
            }

            base.Dispose();
        }
Пример #5
0
 public override void OnTerminate()
 {
     StopWatch.Dispose();
     base.OnTerminate();
 }