Esempio n. 1
0
        /// <summary>
        /// Gets the handler from the cache, if it has been stored there.
        /// </summary>
        /// <returns>An instanciated CustomRedirectHandler if found in the cache, null if not found</returns>
        private static CustomRedirectHandler GetHandlerFromCache()
        {
            CustomRedirectHandler handler = null;

            handler = EPiServer.CacheManager.Get(CACHE_KEY_CUSTOM_REDIRECT_HANDLER_INSTANCE) as CustomRedirectHandler;
            return(handler);
        }
Esempio n. 2
0
 /// <summary>
 /// Stores the redirect handler in the cache
 /// </summary>
 private static void StoreHandlerInCache(CustomRedirectHandler handler)
 {
     EPiServer.CacheManager.Insert(CacheKeyCustomRedirectHandlerInstance, handler);
 }
Esempio n. 3
0
 /// <summary>
 /// Stores the redirect handler in the cache
 /// </summary>
 private static void StoreHandlerInCache(CustomRedirectHandler handler)
 {
     EPiServer.CacheManager.Insert(CACHE_KEY_CUSTOM_REDIRECT_HANDLER_INSTANCE,
                                   handler);
 }
 /// <summary>
 /// Stores the redirect handler in the cache
 /// </summary>
 private static void StoreHandlerInCache(CustomRedirectHandler handler)
 {
     EPiServer.CacheManager.Insert(CACHE_KEY_CUSTOM_REDIRECT_HANDLER_INSTANCE,
                                         handler);
 }