Table of Contents

GetCdnUrl Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Mvc.RazorPages
Assemblies
Cuemon.Extensions.AspNetCore.Mvc.RazorPages.dll
Source
src/Cuemon.Extensions.AspNetCore.Mvc.RazorPages/PageBaseExtensions.cs

GetCdnUrl(PageBase, string)

Gets the fully qualified URL for a static resource placed outside your application (typical CDN).

public static string GetCdnUrl(this PageBase pageModel, string src)

Parameters

pageModel PageBase

The PageBase to extend.

src string

The relative source of the static resource.

Returns

string

A concatenated string of the formatted base URL from CdnTagHelperOptions and the specified src.