public TimeSyncServiceCore() { timeServerHelper = new TimeServerHelper(); this.workerThread = new Thread(this.TimeSyncLoop); this.workerThreadResetEvent = new ManualResetEvent(true); }
public void Stop() { if (this.workerThreadResetEvent != null) { this.workerThreadResetEvent.Set(); } this.workerThread = null; this._running = false; timeServerHelper = null; _initialized = false; }