+
diff --git a/.docfx/api/types/Cuemon.AspNetCore.Razor.TagHelpers.CdnImageTagHelper.md b/.docfx/api/types/Cuemon.AspNetCore.Razor.TagHelpers.CdnImageTagHelper.md
index 5d06ffe76..e1b0e8f0a 100644
--- a/.docfx/api/types/Cuemon.AspNetCore.Razor.TagHelpers.CdnImageTagHelper.md
+++ b/.docfx/api/types/Cuemon.AspNetCore.Razor.TagHelpers.CdnImageTagHelper.md
@@ -7,38 +7,46 @@ example:
The following example demonstrates how to create `CdnImageTagHelper` with CDN-specific options.
```csharp
+// Program.cs
using System;
using Cuemon.AspNetCore.Configuration;
using Cuemon.AspNetCore.Razor.TagHelpers;
using Microsoft.Extensions.Options;
+using MyApp.Examples;
-namespace MyApp.Examples;
+CdnImageTagHelperExample.Demonstrate();
-public static class CdnImageTagHelperExample
+namespace MyApp.Examples
{
- private sealed class AssetVersion : ICacheBusting
+ public static class CdnImageTagHelperExample
{
- public string Version => "2.1.0";
- }
-
- public static void Demonstrate()
- {
- var settings = new CdnTagHelperOptions
+ private sealed class AssetVersion : ICacheBusting
{
- Scheme = ProtocolUriScheme.Https,
- BaseUrl = "nblcdn.net"
- };
+ public string Version => "2.1.0";
+ }
- var version = new AssetVersion();
- var tagHelper = new CdnImageTagHelper(Options.Create(settings), version)
+ public static void Demonstrate()
{
- Src = "images/logo.svg",
- Alt = "Codebelt logo"
- };
- var imageUrl = tagHelper.Options.GetFormattedBaseUrl() + tagHelper.Src + "?v=" + version.Version;
-
- Console.WriteLine(imageUrl);
+ var settings = new CdnTagHelperOptions
+ {
+ Scheme = ProtocolUriScheme.Https,
+ BaseUrl = "nblcdn.net"
+ };
+
+ var version = new AssetVersion();
+ var tagHelper = new CdnImageTagHelper(Options.Create(settings), version)
+ {
+ Src = "images/logo.svg",
+ Alt = "Codebelt logo"
+ };
+ var imageUrl = tagHelper.Options.GetFormattedBaseUrl() + tagHelper.Src + "?v=" + version.Version;
+
+ Console.WriteLine(imageUrl);
+ }
}
}
-
```
+
+
+