Beispiel #1
0
 /// <summary>
 /// 释放资源
 /// </summary>
 public void Dispose()
 {
     try
     {
         Stop();
         TaskWorker.Dispose();
         TaskWorker = null; //干掉引用
     }
     catch (Exception ex)
     {
         Logger.Error("释放资源时发生异常。", ex);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 释放资源
 /// </summary>
 public void Dispose()
 {
     try
     {
         Stop();
         TaskWorker.Dispose();
         TaskWorker = null; //干掉引用
     }
     catch (Exception ex)
     {
         Log.Error(ex, "释放资源时发生异常。");
         //throw;
     }
 }
Beispiel #3
0
 public void Dispose()
 {
     _producerWorker.Dispose();
     Queue.CompleteAdding();
     _consumerWorker.Dispose();
 }
 public void Dispose()
 {
     _worker.Dispose();
 }
Beispiel #5
0
 public void Dispose()
 {
     _consumerWorker.Dispose();
     Queue.Dispose();
 }