protected ThemeableVirtualPathProviderViewEngine() {
     if (HttpContext.Current == null || HttpContext.Current.IsDebuggingEnabled) {
         ViewLocationCache = DefaultViewLocationCache.Null;
     } else {
         ViewLocationCache = new DefaultViewLocationCache();
     }
 }
Esempio n. 2
0
 protected VirtualPathProviderViewEngine()
 {
     if (HttpContext.Current == null || HttpContext.Current.IsDebuggingEnabled)
     {
         ViewLocationCache = DefaultViewLocationCache.Null;
     }
     else
     {
         ViewLocationCache = new DefaultViewLocationCache();
     }
 }
Esempio n. 3
0
        public TailspinViewEngine()
        {
            ViewLocationFormats = new[] {
               "~/{0}.aspx",
            };

            PartialViewLocationFormats = new[] {
                 "~/Shared/{0}.ascx",
            };

            MasterLocationFormats = new[] {
                "~/{0}.master",
            };

            ViewLocationCache = new DefaultViewLocationCache();
        }