Show / Hide Table of Contents

Class BundleManagerBase

Inheritance
object
BundleManagerBase
BundleManager
BundleManager
Implements
IBundleManager
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.Bundling
Assembly: Volo.Abp.AspNetCore.Bundling.dll
Syntax
public abstract class BundleManagerBase : IBundleManager

Constructors

BundleManagerBase(IOptions<AbpBundlingOptions>, IOptions<AbpBundleContributorOptions>, IScriptBundler, IStyleBundler, IServiceProvider, IDynamicFileProvider, IBundleCache)

Declaration
public BundleManagerBase(IOptions<AbpBundlingOptions> options, IOptions<AbpBundleContributorOptions> contributorOptions, IScriptBundler scriptBundler, IStyleBundler styleBundler, IServiceProvider serviceProvider, IDynamicFileProvider dynamicFileProvider, IBundleCache bundleCache)
Parameters
Type Name Description
IOptions<AbpBundlingOptions> options
IOptions<AbpBundleContributorOptions> contributorOptions
IScriptBundler scriptBundler
IStyleBundler styleBundler
IServiceProvider serviceProvider
IDynamicFileProvider dynamicFileProvider
IBundleCache bundleCache

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

Options

Declaration
protected readonly AbpBundlingOptions Options
Field Value
Type Description
AbpBundlingOptions

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<BundleManagerBase> Logger { get; set; }
Property Value
Type Description
ILogger<BundleManagerBase>

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 virtual 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>>

GetFileProvider()

Declaration
protected abstract IFileProvider GetFileProvider()
Returns
Type Description
IFileProvider

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 abstract bool IsBundlingEnabled()
Returns
Type Description
bool

IsMinficationEnabled()

Declaration
protected abstract 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

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