Table of Contents

Class PageBaseExtensions

Namespace
Cuemon.Extensions.AspNetCore.Mvc.RazorPages
Assembly
Cuemon.Extensions.AspNetCore.Mvc.RazorPages.dll

Extension methods for the Microsoft.AspNetCore.Mvc.RazorPages.PageBase class.

public static class PageBaseExtensions
Inheritance
Object
PageBaseExtensions

Methods

GetAppUrl(PageBase, String)

Gets the fully qualified URL for a static resource of your application.

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

Parameters

pageModel PageBase

The Microsoft.AspNetCore.Mvc.RazorPages.PageBase to extend.

src String

The relative source of the static resource.

Returns

String

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

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 Microsoft.AspNetCore.Mvc.RazorPages.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.