/// <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); }
/// <summary> /// /// </summary> public override void Stop() { socketListener.Dispose(); OnServiceStop(); try { EntitySyncManger.Dispose(); } catch { } base.Stop(); }
/// <summary> /// /// </summary> public override void Stop() { if (EnableHttp) { httpListener.Stop(); } socketLintener.Close(); OnServiceStop(); try { //threadPool.Dispose(); EntitySyncManger.Dispose(); //threadPool = null; } catch { } GC.SuppressFinalize(this); }
/// <summary> /// /// </summary> public override void Stop() { base.Stop(); if (EnableHttp) { httpListener.Stop(); } socketListener.Dispose(); try { OnServiceStop(); //threadPool.Dispose(); EntitySyncManger.Dispose(); //threadPool = null; } catch { } }