Show / Hide Table of Contents

Class AbpTagHelperResourceService

Inheritance
System.Object
AbpTagHelperResourceService
AbpTagHelperScriptService
AbpTagHelperStyleService
Namespace: Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers
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
Type Description
AbpBundlingOptions

Properties

BundleManager

Declaration
protected IBundleManager BundleManager { get; }
Property Value
Type Description
IBundleManager

HostingEnvironment

Declaration
protected IWebHostEnvironment HostingEnvironment { get; }
Property Value
Type Description
IWebHostEnvironment

Logger

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

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
Type Name Description
System.Collections.Generic.List<BundleTagHelperItem> bundleItems
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

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