Class BundleManager
Inheritance
object
BundleManager
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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, IWebRequestResources)
Declaration
public BundleManager(IOptions<AbpBundlingOptions> options, IOptions<AbpBundleContributorOptions> contributorOptions, IScriptBundler scriptBundler, IStyleBundler styleBundler, IWebHostEnvironment hostingEnvironment, IServiceProvider serviceProvider, IDynamicFileProvider dynamicFileProvider, IBundleCache bundleCache, 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
HostingEnvironment
Declaration
protected readonly IWebHostEnvironment HostingEnvironment
Field Value
| Type |
Description |
| Microsoft.AspNetCore.Hosting.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
Properties
Logger
Declaration
public ILogger<BundleManager> Logger { get; set; }
Property Value
| Type |
Description |
| Microsoft.Extensions.Logging.ILogger<TCategoryName><BundleManager> |
|
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<TResult><System.Collections.Generic.List<T><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<TResult><System.Collections.Generic.IReadOnlyList<T><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<TResult><System.Collections.Generic.List<T><string>> |
|
GetScriptBundleFilesAsync(string)
Declaration
public virtual Task<IReadOnlyList<string>> GetScriptBundleFilesAsync(string bundleName)
Parameters
| Type |
Name |
Description |
| string |
bundleName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Collections.Generic.IReadOnlyList<T><string>> |
|
GetStyleBundleFilesAsync(string)
Declaration
public virtual Task<IReadOnlyList<string>> GetStyleBundleFilesAsync(string bundleName)
Parameters
| Type |
Name |
Description |
| string |
bundleName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<TResult><System.Collections.Generic.IReadOnlyList<T><string>> |
|
IsBundlingEnabled()
Declaration
protected virtual bool IsBundlingEnabled()
Returns
IsMinficationEnabled()
Declaration
protected virtual bool IsMinficationEnabled()
Returns
SaveBundleResult(string, BundleResult)
Declaration
protected virtual void SaveBundleResult(string bundleRelativePath, BundleResult bundleResult)
Parameters
| Type |
Name |
Description |
| string |
bundleRelativePath |
|
| BundleResult |
bundleResult |
|
Implements
Extension Methods