Show / Hide Table of Contents

Class BundleManager

Inheritance
System.Object
BundleManager
Implements
IBundleManager
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()
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, 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
Type Name Description
IOptions<AbpBundlingOptions> options
IOptions<AbpBundleContributorOptions> contributorOptions
IScriptBundler scriptBundler
IStyleBundler styleBundler
IWebHostEnvironment hostingEnvironment
System.IServiceProvider serviceProvider
IDynamicFileProvider dynamicFileProvider
IBundleCache bundleCache
IWebContentFileProvider webContentFileProvider
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
System.IServiceProvider

StyleBundler

Declaration
protected readonly IStyleBundler StyleBundler
Field Value
Type Description
IStyleBundler

WebContentFileProvider

Declaration
protected readonly IWebContentFileProvider WebContentFileProvider
Field Value
Type Description
IWebContentFileProvider

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
System.Collections.Generic.List<IBundleContributor> contributors
BundleConfigurationCollection bundles
System.String bundleName

CreateBundleConfigurationContext()

Declaration
protected virtual BundleConfigurationContext CreateBundleConfigurationContext()
Returns
Type Description
BundleConfigurationContext

GetBundleFilesAsync(List<IBundleContributor>)

Declaration
protected Task<List<string>> GetBundleFilesAsync(List<IBundleContributor> contributors)
Parameters
Type Name Description
System.Collections.Generic.List<IBundleContributor> contributors
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
Type Name Description
BundleConfigurationCollection bundles
System.String bundleName
IBundler bundler
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
Type Name Description
BundleConfigurationCollection bundles
System.String bundleName
Returns
Type Description
System.Collections.Generic.List<IBundleContributor>

GetDynamicResourcesAsync(List<IBundleContributor>)

Declaration
protected virtual Task<List<string>> GetDynamicResourcesAsync(List<IBundleContributor> contributors)
Parameters
Type Name Description
System.Collections.Generic.List<IBundleContributor> contributors
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

IBundleManager
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft