Show / Hide Table of Contents

Class AbpTagHelperResourceService

Inheritance
object
AbpTagHelperResourceService
AbpTagHelperScriptService
AbpTagHelperStyleService
Implements
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.TagHelpers
Assembly: Volo.Abp.AspNetCore.Mvc.UI.Bundling.dll
Syntax
public abstract class AbpTagHelperResourceService : ITransientDependency

Constructors

AbpTagHelperResourceService(IBundleManager, IOptions<AbpBundlingOptions>, IWebHostEnvironment)

Declaration
protected AbpTagHelperResourceService(IBundleManager bundleManager, IOptions<AbpBundlingOptions> options, IWebHostEnvironment hostingEnvironment)
Parameters
Type Name Description
IBundleManager bundleManager
Microsoft.Extensions.Options.IOptions<TOptions><AbpBundlingOptions> options
Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment

Properties

BundleManager

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

HostingEnvironment

Declaration
protected IWebHostEnvironment HostingEnvironment { get; }
Property Value
Type Description
Microsoft.AspNetCore.Hosting.IWebHostEnvironment

Logger

Declaration
public ILogger<AbpTagHelperResourceService> Logger { get; set; }
Property Value
Type Description
Microsoft.Extensions.Logging.ILogger<TCategoryName><AbpTagHelperResourceService>

Options

Declaration
protected AbpBundlingOptions Options { get; }
Property Value
Type Description
AbpBundlingOptions

Methods

AddHtmlTag(ViewContext, TagHelper, TagHelperContext, TagHelperOutput, string)

Declaration
protected abstract void AddHtmlTag(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, string file)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext
Microsoft.AspNetCore.Razor.TagHelpers.TagHelper tagHelper
Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context
Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output
string file

CreateBundle(string, List<BundleTagHelperItem>)

Declaration
protected abstract void CreateBundle(string bundleName, List<BundleTagHelperItem> bundleItems)
Parameters
Type Name Description
string bundleName
System.Collections.Generic.List<T><BundleTagHelperItem> bundleItems

GenerateBundleName(List<BundleTagHelperItem>)

Declaration
protected virtual string GenerateBundleName(List<BundleTagHelperItem> bundleItems)
Parameters
Type Name Description
System.Collections.Generic.List<T><BundleTagHelperItem> bundleItems
Returns
Type Description
string

GetBundleFilesAsync(string)

Declaration
protected abstract Task<IReadOnlyList<string>> GetBundleFilesAsync(string bundleName)
Parameters
Type Name Description
string bundleName
Returns
Type Description
System.Threading.Tasks.Task<TResult><System.Collections.Generic.IReadOnlyList<T><string>>

ProcessAsync(ViewContext, TagHelper, TagHelperContext, TagHelperOutput, List<BundleTagHelperItem>, string)

Declaration
public virtual Task ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List<BundleTagHelperItem> bundleItems, string bundleName = null)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext
Microsoft.AspNetCore.Razor.TagHelpers.TagHelper tagHelper
Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context
Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output
System.Collections.Generic.List<T><BundleTagHelperItem> bundleItems
string bundleName
Returns
Type Description
System.Threading.Tasks.Task

Implements

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>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft