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
- 
      
      
      
      
      CdnScriptTagHelper
- Implements
- Inherited Members
Constructors
CdnScriptTagHelper(IOptions<CdnTagHelperOptions>, ICacheBusting)
Initializes a new instance of the CdnScriptTagHelper class.
public CdnScriptTagHelper(IOptions<CdnTagHelperOptions> setup, ICacheBusting cacheBusting = null)Parameters
- setupIOptions<CdnTagHelperOptions>
- The CdnTagHelperOptions which need to be configured. 
- cacheBustingICacheBusting
- An optional object implementing the ICacheBusting interface. 
See Also
ScriptTagHelper<TOptions>