Ejemplo n.º 1
0
 public void Shutdown()
 {
     if (!ShuttingDown)
     {
         ForceShutdown(true);
     }
     Host.RemoveLot(((Context.Id & 0x40000000) > 0)?(int)Context.Id:Context.DbId);
     SetOnline(false);
     SetSpotlight(false);
     ReleaseLotClaim();
     Host.ShutdownComplete(this);
     BackgroundThread.Abort();
 }
Ejemplo n.º 2
0
        public void Shutdown()
        {
            if (!ShuttingDown)
            {
                ForceShutdown(true);
            }
            Host.RemoveLot(((Context.Id & 0x40000000) > 0)?(int)Context.Id:Context.DbId);
            SetOnline(false);
            SetSpotlight(false);
            ReleaseLotClaim();
            BgAlive = false;
            BackgroundNotify.Set();
            if (Thread.CurrentThread != BackgroundThread)
            {
                BackgroundThread.Join();
            }

            LOG.Info("Background Thread completely shut down for lot " + Context.DbId);

            Host.ShutdownComplete(this);
        }