public void ResetQueueAndCache()
        {
            QueryQueueMutex.WaitOne();
            for (; ;)
            {
                if (QueryQueue.Pop() == null)
                {
                    break;
                }
            }

            QueryQueueMutex.ReleaseMutex();
            lock (QueryCacheLock)
            {
                QueryCache.Clear();
            }
        }
Пример #2
0
 public static void ClearCache()
 {
     QueryCache.Clear();
 }