Class AppScriptTagHelper
- 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 outside (but tied to) your application. This class cannot be inherited.
[HtmlTargetElement("app-script")]
public sealed class AppScriptTagHelper : ScriptTagHelper<AppTagHelperOptions>, ITagHelper, ITagHelperComponent, IConfigurable<AppTagHelperOptions>
- Inheritance
-
TagHelperAppScriptTagHelper
- Implements
-
ITagHelperITagHelperComponent
- Inherited Members
-
TagHelper.Init(TagHelperContext)TagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.Order
Constructors
AppScriptTagHelper(IOptions<AppTagHelperOptions>, ICacheBusting)
Initializes a new instance of the AppScriptTagHelper class.
public AppScriptTagHelper(IOptions<AppTagHelperOptions> setup, ICacheBusting cacheBusting = null)
Parameters
setup
IOptions<AppTagHelperOptions>The CdnTagHelperOptions which need to be configured.
cacheBusting
ICacheBustingAn optional object implementing the ICacheBusting interface.
See Also
ScriptTagHelper<TOptions>