Esempio n. 1
0
        public BundleWebFormViewEngine(IBundle bundle)
        {
            Bundle = bundle;
            string bundleRelativePath = MvcPathUtility.MapPathReverse(bundle.Location);

            base.MasterLocationFormats     = MvcPathUtility.RedirectToBundlePath(base.MasterLocationFormats, bundleRelativePath).ToArray <string>();
            base.AreaMasterLocationFormats = MvcPathUtility.RedirectToBundlePath(base.AreaMasterLocationFormats, bundleRelativePath).ToArray <string>();
            base.ViewLocationFormats       = MvcPathUtility.RedirectToBundlePath(base.ViewLocationFormats, bundleRelativePath).ToArray <string>();
            base.AreaViewLocationFormats   = MvcPathUtility.RedirectToBundlePath(base.AreaViewLocationFormats, bundleRelativePath).ToArray <string>();
        }
Esempio n. 2
0
        public BundleRazorViewEngine(IBundle bundle)
        {
            Bundle = bundle;
            string bundleRelativePath = MvcPathUtility.MapPathReverse(bundle.Location);

            AreaViewLocationFormats        = MvcPathUtility.RedirectToBundlePath(AreaViewLocationFormats, bundleRelativePath).ToArray();
            AreaMasterLocationFormats      = MvcPathUtility.RedirectToBundlePath(AreaMasterLocationFormats, bundleRelativePath).ToArray();
            AreaPartialViewLocationFormats = MvcPathUtility.RedirectToBundlePath(AreaPartialViewLocationFormats, bundleRelativePath).ToArray();
            ViewLocationFormats            = MvcPathUtility.RedirectToBundlePath(ViewLocationFormats, bundleRelativePath).ToArray();
            MasterLocationFormats          = MvcPathUtility.RedirectToBundlePath(MasterLocationFormats, bundleRelativePath).ToArray();
            PartialViewLocationFormats     = MvcPathUtility.RedirectToBundlePath(PartialViewLocationFormats, bundleRelativePath).ToArray();
        }