예제 #1
0
파일: Crawler.cs 프로젝트: flippynips/EFZ
 /// <summary>
 /// Stop this Crawler and dispose of its resources.
 /// </summary>
 public void Dispose()
 {
     if (_lock == null)
     {
         return;
     }
     if (Running)
     {
         OnStop      = new ActionSet(Dispose);
         _abort      = true;
         _nextUrlSet = false;
     }
     _lock.Take();
     _timer.Run = false;
     _time.Stop();
     Connecting = false;
     Processing = false;
     _request   = null;
     _response  = null;
     _parseUrl  = null;
     _ascii     = null;
     _utf8      = null;
     _lock.Release();
     _lock = null;
 }