Пример #1
0
        private static void Main()
        {
            Console.WriteLine("Executing queries. Please be patient.");

            var memoizer = new Memoizer<int, Dictionary<string, CacheEntry<int>>>();
            var memoizedTaskAsyncFunc = memoizer.MemoizeTask<int>(TaskAsyncQuery);

            ExecuteTaskAsyncQuery(memoizedTaskAsyncFunc, QueryArg).Wait();
            ExecuteTaskAsyncQuery(memoizedTaskAsyncFunc, QueryArg).Wait();

            Console.Write("Press any key to exit.");
            Console.Read();
        }