Пример #1
0
 protected override void OnDispose()
 {
     CacheArgs.Clear();
     RunningArgs.Clear();
     ThreadCache.Dispose();
     semaphore.Dispose();
     semaphore   = null;
     RunningArgs = null;
     CacheArgs   = null;
 }
Пример #2
0
        public static void Dispose()
        {
            ctrolThread.Abort();
            ctrolThread.Join();
            CacheArgs.Clear();
            RunningArgs.Clear();
            ThreadCache.Dispose();
            ArgCache.Dispose();

            eve         = null;
            ctrolThread = null;

            RunningArgs = null;
            CacheArgs   = null;
        }