public void Dispose() { if (thread != null) { IsRuning = false; Thread.Sleep(MillisecondsTimeout); thread = null; } if (MessageQueue != null) { MessageQueue.Clear(); MessageQueue = null; } }
public void Clear() { lock (InnerQueue.SyncRoot) InnerQueue.Clear(); }