コード例 #1
0
        public BundleManager(
            IOptions <BundlingOptions> options,
            IOptions <BundleContributorOptions> contributorOptions,
            IScriptBundler scriptBundler,
            IStyleBundler styleBundler,
            IWebHostEnvironment hostingEnvironment,
            IServiceProvider serviceProvider,
            IDynamicFileProvider dynamicFileProvider,
            IBundleCache bundleCache,
            IWebContentFileProvider webContentFileProvider,
            IWebRequestResources requestResources)
        {
            Options                = options.Value;
            ContributorOptions     = contributorOptions.Value;
            HostingEnvironment     = hostingEnvironment;
            ScriptBundler          = scriptBundler;
            ServiceProvider        = serviceProvider;
            DynamicFileProvider    = dynamicFileProvider;
            BundleCache            = bundleCache;
            WebContentFileProvider = webContentFileProvider;
            RequestResources       = requestResources;
            StyleBundler           = styleBundler;

            Logger = NullLogger <BundleManager> .Instance;
        }
コード例 #2
0
        public StyleBundlerModule(IEnumerable<StyleBundle> bundles, IStyleBundler bundler)
        {
            if (bundles == null) throw new ArgumentNullException("bundles");

            foreach (StyleBundle bundle in bundles)
            {
                StyleBundle local = bundle;

                Get[bundle.Path] = parameters => BundleTable.Bundles.Cache.Get(local, bundler.Bundle);
            }
        }