Class BundleManager
Inheritance
System.Object
BundleManager
Implements
ITransientDependency
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Volo.Abp.AspNetCore.Mvc.UI.Bundling.dll
Syntax
public class BundleManager : IBundleManager, ITransientDependency
Constructors
BundleManager(IOptions<AbpBundlingOptions>, IOptions<AbpBundleContributorOptions>, IScriptBundler, IStyleBundler, IWebHostEnvironment, IServiceProvider, IDynamicFileProvider, IBundleCache, IWebContentFileProvider, IWebRequestResources)
Declaration
public BundleManager(IOptions<AbpBundlingOptions> options, IOptions<AbpBundleContributorOptions> contributorOptions, IScriptBundler scriptBundler, IStyleBundler styleBundler, IWebHostEnvironment hostingEnvironment, IServiceProvider serviceProvider, IDynamicFileProvider dynamicFileProvider, IBundleCache bundleCache, IWebContentFileProvider webContentFileProvider, IWebRequestResources requestResources)
Parameters
Fields
BundleCache
Declaration
protected readonly IBundleCache BundleCache
Field Value
ContributorOptions
Declaration
protected readonly AbpBundleContributorOptions ContributorOptions
Field Value
DynamicFileProvider
Declaration
protected readonly IDynamicFileProvider DynamicFileProvider
Field Value
Type |
Description |
IDynamicFileProvider |
|
HostingEnvironment
Declaration
protected readonly IWebHostEnvironment HostingEnvironment
Field Value
Type |
Description |
IWebHostEnvironment |
|
Options
Declaration
protected readonly AbpBundlingOptions Options
Field Value
RequestResources
Declaration
protected readonly IWebRequestResources RequestResources
Field Value
ScriptBundler
Declaration
protected readonly IScriptBundler ScriptBundler
Field Value
ServiceProvider
Declaration
protected readonly IServiceProvider ServiceProvider
Field Value
Type |
Description |
System.IServiceProvider |
|
StyleBundler
Declaration
protected readonly IStyleBundler StyleBundler
Field Value
WebContentFileProvider
Declaration
protected readonly IWebContentFileProvider WebContentFileProvider
Field Value
Type |
Description |
IWebContentFileProvider |
|
Properties
Logger
Declaration
public ILogger<BundleManager> Logger { get; set; }
Property Value
Methods
AddContributorsWithBaseBundles(List<IBundleContributor>, BundleConfigurationCollection, String)
Declaration
protected virtual void AddContributorsWithBaseBundles(List<IBundleContributor> contributors, BundleConfigurationCollection bundles, string bundleName)
Parameters
CreateBundleConfigurationContext()
Declaration
protected virtual BundleConfigurationContext CreateBundleConfigurationContext()
Returns
GetBundleFilesAsync(List<IBundleContributor>)
Declaration
protected Task<List<string>> GetBundleFilesAsync(List<IBundleContributor> contributors)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<System.String>> |
|
GetBundleFilesAsync(BundleConfigurationCollection, String, IBundler)
Declaration
protected virtual Task<IReadOnlyList<string>> GetBundleFilesAsync(BundleConfigurationCollection bundles, string bundleName, IBundler bundler)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.String>> |
|
GetContributors(BundleConfigurationCollection, String)
Declaration
protected virtual List<IBundleContributor> GetContributors(BundleConfigurationCollection bundles, string bundleName)
Parameters
Returns
GetDynamicResourcesAsync(List<IBundleContributor>)
Declaration
protected virtual Task<List<string>> GetDynamicResourcesAsync(List<IBundleContributor> contributors)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<System.String>> |
|
GetScriptBundleFilesAsync(String)
Declaration
public virtual Task<IReadOnlyList<string>> GetScriptBundleFilesAsync(string bundleName)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.String>> |
|
GetStyleBundleFilesAsync(String)
Declaration
public virtual Task<IReadOnlyList<string>> GetStyleBundleFilesAsync(string bundleName)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.String>> |
|
IsBundlingEnabled()
Declaration
protected virtual bool IsBundlingEnabled()
Returns
Type |
Description |
System.Boolean |
|
IsMinficationEnabled()
Declaration
protected virtual bool IsMinficationEnabled()
Returns
Type |
Description |
System.Boolean |
|
SaveBundleResult(String, BundleResult)
Declaration
protected virtual void SaveBundleResult(string bundleRelativePath, BundleResult bundleResult)
Parameters
Type |
Name |
Description |
System.String |
bundleRelativePath |
|
BundleResult |
bundleResult |
|
Implements
ITransientDependency
Extension Methods