Class CdnTagHelper
Provides a base-class for CDN-related Microsoft.AspNetCore.Razor.TagHelpers.TagHelper implementation in Razor for ASP.NET Core. Implements the Microsoft.AspNetCore.Razor.TagHelpers.TagHelper Implements the IConfigurable<TOptions>
Inheritance
Implements
Inherited Members
Namespace: Cuemon.AspNetCore.Razor.TagHelpers
Assembly: Cuemon.AspNetCore.Razor.TagHelpers.dll
Syntax
public abstract class CdnTagHelper : TagHelper, ITagHelper, ITagHelperComponent, IConfigurable<CdnTagHelperOptions>
Constructors
| Improve this DocCdnTagHelper(IOptions<CdnTagHelperOptions>, ICacheBusting)
Initializes a new instance of the CdnTagHelper class.
Declaration
protected CdnTagHelper(IOptions<CdnTagHelperOptions> setup, ICacheBusting cacheBusting = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<CdnTagHelperOptions> | setup | The CdnTagHelperOptions which need to be configured. |
ICacheBusting | cacheBusting | An optional object implementing the ICacheBusting interface. |
Properties
| Improve this DocCacheBusting
Gets the by constructor optional supplied object implementing the ICacheBusting interface.
Declaration
protected ICacheBusting CacheBusting { get; }
Property Value
Type | Description |
---|---|
ICacheBusting | The by constructor optional supplied object implementing the ICacheBusting interface. |
Options
Gets the configured options of this instance.
Declaration
public CdnTagHelperOptions Options { get; }
Property Value
Type | Description |
---|---|
CdnTagHelperOptions | The configured options of this instance. |
UseCacheBusting
Gets a value indicating whether an object implementing the ICacheBusting interface is specified.
Declaration
protected bool UseCacheBusting { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
| Improve this DocGetBaseUrl()
Gets the base URL of this instance.
Declaration
protected virtual string GetBaseUrl()
Returns
Type | Description |
---|---|
System.String | The base URL of this instance. |