Table of Contents

Class CacheBustingTagHelper<TOptions>

Namespace
Cuemon.AspNetCore.Razor.TagHelpers
Assembly
Cuemon.AspNetCore.Razor.TagHelpers.dll

Provides a base-class for static content related TagHelper implementation in Razor for ASP.NET Core.

public abstract class CacheBustingTagHelper<TOptions> : TagHelper, ITagHelper, ITagHelperComponent, IConfigurable<TOptions> where TOptions : TagHelperOptions, new()

Type Parameters

TOptions
Inheritance
CacheBustingTagHelper<TOptions>
Implements
IConfigurable<TOptions>
Derived
Inherited Members

Constructors

CacheBustingTagHelper(IOptions<TOptions>, ICacheBusting)

Initializes a new instance of the CacheBustingTagHelper<TOptions> class.

protected CacheBustingTagHelper(IOptions<TOptions> setup, ICacheBusting cacheBusting = null)

Parameters

setup IOptions<TOptions>

The TOptions which need to be configured.

cacheBusting ICacheBusting

An optional object implementing the ICacheBusting interface.

Properties

CacheBusting

Gets the by constructor optional supplied object implementing the ICacheBusting interface.

protected ICacheBusting CacheBusting { get; }

Property Value

ICacheBusting

The by constructor optional supplied object implementing the ICacheBusting interface.

Options

Gets the configured options of this instance.

public TOptions Options { get; }

Property Value

TOptions

The configured options of this instance.

UseCacheBusting

Gets a value indicating whether an object implementing the ICacheBusting interface is specified.

protected bool UseCacheBusting { get; }

Property Value

bool

true if an object implementing the ICacheBusting interface is specified; otherwise, false.

ViewContext

Gets or sets the current view context.

[HtmlAttributeNotBound]
[ViewContext]
public ViewContext ViewContext { get; set; }

Property Value

ViewContext

The current view context.

Methods

ResolveUrl(string)

Resolves the fully qualified URL of the specified static resource.

protected string ResolveUrl(string path)

Parameters

path string

The relative path of the static resource.

Returns

string

The fully qualified URL of the specified static resource.

See Also