Show / Hide Table of Contents

Class BundleManager

Inheritance
object
BundleManager
Implements
IBundleManager
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AspNetCore.Mvc.UI.Bundling
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
Type Name Description
IOptions<AbpBundlingOptions> options
IOptions<AbpBundleContributorOptions> contributorOptions
IScriptBundler scriptBundler
IStyleBundler styleBundler
IWebHostEnvironment hostingEnvironment
IServiceProvider serviceProvider
IDynamicFileProvider dynamicFileProvider
IBundleCache bundleCache
IWebRequestResources requestResources

Fields

BundleCache

Declaration
protected readonly IBundleCache BundleCache
Field Value
Type Description
IBundleCache

ContributorOptions

Declaration
protected readonly AbpBundleContributorOptions ContributorOptions
Field Value
Type Description
AbpBundleContributorOptions

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
Type Description
AbpBundlingOptions

RequestResources

Declaration
protected readonly IWebRequestResources RequestResources
Field Value
Type Description
IWebRequestResources

ScriptBundler

Declaration
protected readonly IScriptBundler ScriptBundler
Field Value
Type Description
IScriptBundler

ServiceProvider

Declaration
protected readonly IServiceProvider ServiceProvider
Field Value
Type Description
IServiceProvider

StyleBundler

Declaration
protected readonly IStyleBundler StyleBundler
Field Value
Type Description
IStyleBundler

Properties

Logger

Declaration
public ILogger<BundleManager> Logger { get; set; }
Property Value
Type Description
ILogger<BundleManager>

Methods

AddContributorsWithBaseBundles(List<IBundleContributor>, BundleConfigurationCollection, string)

Declaration
protected virtual void AddContributorsWithBaseBundles(List<IBundleContributor> contributors, BundleConfigurationCollection bundles, string bundleName)
Parameters
Type Name Description
List<IBundleContributor> contributors
BundleConfigurationCollection bundles
string bundleName

CreateBundleConfigurationContext()

Declaration
protected virtual BundleConfigurationContext CreateBundleConfigurationContext()
Returns
Type Description
BundleConfigurationContext

GetBundleFilesAsync(List<IBundleContributor>)

Declaration
protected Task<List<BundleFile>> GetBundleFilesAsync(List<IBundleContributor> contributors)
Parameters
Type Name Description
List<IBundleContributor> contributors
Returns
Type Description
Task<List<BundleFile>>

GetBundleFilesAsync(BundleConfigurationCollection, string, IBundler)

Declaration
protected virtual Task<IReadOnlyList<BundleFile>> GetBundleFilesAsync(BundleConfigurationCollection bundles, string bundleName, IBundler bundler)
Parameters
Type Name Description
BundleConfigurationCollection bundles
string bundleName
IBundler bundler
Returns
Type Description
Task<IReadOnlyList<BundleFile>>

GetContributors(BundleConfigurationCollection, string)

Declaration
protected virtual List<IBundleContributor> GetContributors(BundleConfigurationCollection bundles, string bundleName)
Parameters
Type Name Description
BundleConfigurationCollection bundles
string bundleName
Returns
Type Description
List<IBundleContributor>

GetDynamicResourcesAsync(List<IBundleContributor>)

Declaration
protected virtual Task<List<BundleFile>> GetDynamicResourcesAsync(List<IBundleContributor> contributors)
Parameters
Type Name Description
List<IBundleContributor> contributors
Returns
Type Description
Task<List<BundleFile>>

GetScriptBundleFilesAsync(string)

Declaration
public virtual Task<IReadOnlyList<BundleFile>> GetScriptBundleFilesAsync(string bundleName)
Parameters
Type Name Description
string bundleName
Returns
Type Description
Task<IReadOnlyList<BundleFile>>

GetStyleBundleFilesAsync(string)

Declaration
public virtual Task<IReadOnlyList<BundleFile>> GetStyleBundleFilesAsync(string bundleName)
Parameters
Type Name Description
string bundleName
Returns
Type Description
Task<IReadOnlyList<BundleFile>>

IsBundlingEnabled()

Declaration
public virtual bool IsBundlingEnabled()
Returns
Type Description
bool

IsMinficationEnabled()

Declaration
protected virtual bool IsMinficationEnabled()
Returns
Type Description
bool

SaveBundleResult(string, BundleResult)

Declaration
protected virtual void SaveBundleResult(string bundleRelativePath, BundleResult bundleResult)
Parameters
Type Name Description
string bundleRelativePath
BundleResult bundleResult

Implements

IBundleManager
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform