Class AbpTagHelperResourceService
Inheritance
System.Object
AbpTagHelperResourceService
Assembly: Volo.Abp.AspNetCore.Mvc.UI.Bundling.dll
Syntax
public abstract class AbpTagHelperResourceService : ITransientDependency
Constructors
AbpTagHelperResourceService(IBundleManager, IWebContentFileProvider, IOptions<AbpBundlingOptions>, IWebHostEnvironment)
Declaration
protected AbpTagHelperResourceService(IBundleManager bundleManager, IWebContentFileProvider webContentFileProvider, IOptions<AbpBundlingOptions> options, IWebHostEnvironment hostingEnvironment)
Parameters
Type |
Name |
Description |
IBundleManager |
bundleManager |
|
IWebContentFileProvider |
webContentFileProvider |
|
IOptions<AbpBundlingOptions> |
options |
|
IWebHostEnvironment |
hostingEnvironment |
|
Fields
Options
Declaration
protected readonly AbpBundlingOptions Options
Field Value
Properties
BundleManager
Declaration
protected IBundleManager BundleManager { get; }
Property Value
HostingEnvironment
Declaration
protected IWebHostEnvironment HostingEnvironment { get; }
Property Value
Type |
Description |
IWebHostEnvironment |
|
Logger
Declaration
public ILogger<AbpTagHelperResourceService> Logger { get; set; }
Property Value
WebContentFileProvider
Declaration
protected IWebContentFileProvider WebContentFileProvider { get; }
Property Value
Type |
Description |
IWebContentFileProvider |
|
Methods
AddHtmlTag(ViewContext, TagHelperContext, TagHelperOutput, String)
Declaration
protected abstract void AddHtmlTag(ViewContext viewContext, TagHelperContext context, TagHelperOutput output, string file)
Parameters
Type |
Name |
Description |
ViewContext |
viewContext |
|
TagHelperContext |
context |
|
TagHelperOutput |
output |
|
System.String |
file |
|
CreateBundle(String, List<BundleTagHelperItem>)
Declaration
protected abstract void CreateBundle(string bundleName, List<BundleTagHelperItem> bundleItems)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
System.Collections.Generic.List<BundleTagHelperItem> |
bundleItems |
|
GenerateBundleName(List<BundleTagHelperItem>)
Declaration
protected virtual string GenerateBundleName(List<BundleTagHelperItem> bundleItems)
Parameters
Returns
Type |
Description |
System.String |
|
GetBundleFilesAsync(String)
Declaration
protected abstract Task<IReadOnlyList<string>> GetBundleFilesAsync(string bundleName)
Parameters
Type |
Name |
Description |
System.String |
bundleName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.String>> |
|
ProcessAsync(ViewContext, TagHelperContext, TagHelperOutput, List<BundleTagHelperItem>, String)
Declaration
public virtual Task ProcessAsync(ViewContext viewContext, TagHelperContext context, TagHelperOutput output, List<BundleTagHelperItem> bundleItems, string bundleName = null)
Parameters
Type |
Name |
Description |
ViewContext |
viewContext |
|
TagHelperContext |
context |
|
TagHelperOutput |
output |
|
System.Collections.Generic.List<BundleTagHelperItem> |
bundleItems |
|
System.String |
bundleName |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Extension Methods