Esempio n. 1
0
        public BundleConfig(IExternalWebLinkResolver externalWebLinkResolver)
        {
            _externalWebLinkResolver = externalWebLinkResolver;

            var jsMapPath = HttpContext.Current.Server.MapPath("js_log.xml");
            var cssMapPath = HttpContext.Current.Server.MapPath("css_log.xml");

            _jsMapExists = File.Exists(jsMapPath);
            _cssMapExists = File.Exists(cssMapPath);

            _jsResourceMap = _jsMapExists ? new ResourceMap(jsMapPath) : null;
            _cssResourceMap = _cssMapExists ? new ResourceMap(cssMapPath) : null;

            _bundleXml = XDocument.Load(HttpContext.Current.Server.MapPath("Bundle.xml"));
        }
        public BundleConfig(IExternalWebLinkResolver externalWebLinkResolver)
        {
            _externalWebLinkResolver = externalWebLinkResolver;

            var jsMapPath  = HttpContext.Current.Server.MapPath("js_log.xml");
            var cssMapPath = HttpContext.Current.Server.MapPath("css_log.xml");

            _jsMapExists  = File.Exists(jsMapPath);
            _cssMapExists = File.Exists(cssMapPath);

            _jsResourceMap  = _jsMapExists ? new ResourceMap(jsMapPath) : null;
            _cssResourceMap = _cssMapExists ? new ResourceMap(cssMapPath) : null;

            _bundleXml = XDocument.Load(HttpContext.Current.Server.MapPath("Bundle.xml"));
        }