/// <summary> /// By default, set the memory critical application response to simply jettison all cached /// synonym data. /// </summary> private static void BindDefaultHandlers() { MemoryThresholdExceeded += delegate { Lexicon.ClearAllCachedSynonymData(); // Experimental: Invoke an explicit garbage collection to free up memory. This may // be advantageous to performance in this situation, but it remains to be seen. See // the second paragraph of http://msdn.microsoft.com/en-us/library/bb384155 System.GC.Collect(); }; }