BundleContributorOptions to AbpBundleContributorOptions

pull/1919/head
Yunus Emre Kalkan 5 years ago
parent e0bfc969c5
commit 3946aa4311

@ -4,11 +4,11 @@ using JetBrains.Annotations;
namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling
{ {
public class BundleContributorOptions public class AbpBundleContributorOptions
{ {
public ConcurrentDictionary<Type, BundleContributorCollection> AllExtensions { get; } public ConcurrentDictionary<Type, BundleContributorCollection> AllExtensions { get; }
public BundleContributorOptions() public AbpBundleContributorOptions()
{ {
AllExtensions = new ConcurrentDictionary<Type, BundleContributorCollection>(); AllExtensions = new ConcurrentDictionary<Type, BundleContributorCollection>();
} }

@ -22,7 +22,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling
public ILogger<BundleManager> Logger { get; set; } public ILogger<BundleManager> Logger { get; set; }
protected readonly BundlingOptions Options; protected readonly BundlingOptions Options;
protected readonly BundleContributorOptions ContributorOptions; protected readonly AbpBundleContributorOptions ContributorOptions;
protected readonly IWebContentFileProvider WebContentFileProvider; protected readonly IWebContentFileProvider WebContentFileProvider;
protected readonly IWebHostEnvironment HostingEnvironment; protected readonly IWebHostEnvironment HostingEnvironment;
protected readonly IScriptBundler ScriptBundler; protected readonly IScriptBundler ScriptBundler;
@ -34,7 +34,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bundling
public BundleManager( public BundleManager(
IOptions<BundlingOptions> options, IOptions<BundlingOptions> options,
IOptions<BundleContributorOptions> contributorOptions, IOptions<AbpBundleContributorOptions> contributorOptions,
IScriptBundler scriptBundler, IScriptBundler scriptBundler,
IStyleBundler styleBundler, IStyleBundler styleBundler,
IWebHostEnvironment hostingEnvironment, IWebHostEnvironment hostingEnvironment,

@ -68,7 +68,7 @@ namespace Volo.Docs
options.Converters[MarkdownDocumentToHtmlConverter.Type] = typeof(MarkdownDocumentToHtmlConverter); options.Converters[MarkdownDocumentToHtmlConverter.Type] = typeof(MarkdownDocumentToHtmlConverter);
}); });
Configure<BundleContributorOptions>(options => Configure<AbpBundleContributorOptions>(options =>
{ {
options options
.Extensions<PrismjsStyleBundleContributor>() .Extensions<PrismjsStyleBundleContributor>()

Loading…
Cancel
Save