Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        public void Stop()
        {
            Interlocked.Exchange(ref _runningQueue, 0);
            if (EnableHttp)
            {
                httpListener.Stop();
            }
            socketLintener.Close();
            OnServiceStop();
            try
            {
                singal.Set();
                threadPool.Dispose();
                queueProcessThread.Abort();
                _LockedQueueChecker.Dispose();
                singal.Dispose();
                EntitySyncManger.Dispose();

                threadPool          = null;
                queueProcessThread  = null;
                _LockedQueueChecker = null;
                singal = null;
            }
            catch
            {
            }
            GC.SuppressFinalize(this);
        }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 public override void Stop()
 {
     socketListener.Dispose();
     OnServiceStop();
     try
     {
         EntitySyncManger.Dispose();
     }
     catch { }
     base.Stop();
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 public override void Stop()
 {
     if (EnableHttp)
     {
         httpListener.Stop();
     }
     socketLintener.Close();
     OnServiceStop();
     try
     {
         //threadPool.Dispose();
         EntitySyncManger.Dispose();
         //threadPool = null;
     }
     catch
     {
     }
     GC.SuppressFinalize(this);
 }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 public override void Stop()
 {
     base.Stop();
     if (EnableHttp)
     {
         httpListener.Stop();
     }
     socketListener.Dispose();
     try
     {
         OnServiceStop();
         //threadPool.Dispose();
         EntitySyncManger.Dispose();
         //threadPool = null;
     }
     catch
     {
     }
 }