CdnTagHelperOptions Class
Definition
- Namespace
- Cuemon.AspNetCore.Razor.TagHelpers
- Assemblies
- 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
| Name | Description |
|---|---|
| CdnTagHelperOptions() | Initializes a new instance of the CdnTagHelperOptions class. |