Example #1
0
        public override void InitHelpers()
        {
            base.InitHelpers();
            var app = (MvcApplication)ViewContext.RequestContext.HttpContext.ApplicationInstance;

            Bundles = new BundleManager(app.BundleProvider, ViewContext.RequestContext);
        }
Example #2
0
        protected override void Initialize(RequestContext requestContext)
        {
            base.Initialize(requestContext);
            var bundleProvider = ((MvcApplication)requestContext.HttpContext.ApplicationInstance).BundleProvider;

            Bundles = new BundleManager(bundleProvider, requestContext);
        }