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