Esempio n. 1
0
        /// <summary>
        /// Creates an instance of the cache used by the application.
        /// </summary>
        public static DataCache GetCache()
        {
            if (cache == null) {
                lock (syncRoot) {
                    if (cache == null) {
                        cache = new HttpCache();
                    }
                }
            }

            return cache;
        }