Class CdnScriptTagHelper
- Namespace
- Cuemon.AspNetCore.Razor.TagHelpers
- Assembly
- Cuemon.AspNetCore.Razor.TagHelpers.dll
Provides an implementation targeting <script> elements that supports ICacheBusting versioning of a static script placed on a location with a CDN role. This class cannot be inherited.
[HtmlTargetElement("cdn-script")]
public sealed class CdnScriptTagHelper : ScriptTagHelper<CdnTagHelperOptions>, ITagHelper, ITagHelperComponent, IConfigurable<CdnTagHelperOptions>
- Inheritance
-
TagHelperCdnScriptTagHelper
- Implements
-
ITagHelperITagHelperComponent
- Inherited Members
-
TagHelper.Init(TagHelperContext)TagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Order
Constructors
CdnScriptTagHelper(IOptions<CdnTagHelperOptions>, ICacheBusting)
Initializes a new instance of the CdnScriptTagHelper class.
public CdnScriptTagHelper(IOptions<CdnTagHelperOptions> setup, ICacheBusting cacheBusting = null)
Parameters
setup
IOptions<CdnTagHelperOptions>The CdnTagHelperOptions which need to be configured.
cacheBusting
ICacheBustingAn optional object implementing the ICacheBusting interface.
See Also
ScriptTagHelper<TOptions>