Class CdnTagHelperOptions
- Namespace
- Cuemon.AspNetCore.Razor.TagHelpers
- Assembly
- Cuemon.AspNetCore.Razor.TagHelpers.dll
Configuration options for CdnImageTagHelper, CdnLinkTagHelper and CdnScriptTagHelper.
public class CdnTagHelperOptions : TagHelperOptions, IParameterObject
- Inheritance
-
CdnTagHelperOptions
- Implements
- Inherited Members
Examples
The following example demonstrates how to configure for CDN-scoped tag helpers.
using System;
using Cuemon.AspNetCore.Razor.TagHelpers;
namespace MyApp.Examples;
public static class CdnTagHelperOptionsExample
{
public static void Demonstrate()
{
var options = new CdnTagHelperOptions
{
Scheme = ProtocolUriScheme.Https,
BaseUrl = "nblcdn.net"
};
Console.WriteLine(options.GetFormattedBaseUrl());
}
}
Constructors
CdnTagHelperOptions()
Initializes a new instance of the CdnTagHelperOptions class.
public CdnTagHelperOptions()
Remarks
The following table shows the initial property values for an instance of CdnTagHelperOptions.
| Property | Initial Value |
|---|---|
| Scheme | Relative |
| BaseUrl | null |