Class PageBaseExtensions
- Namespace
- Cuemon.Extensions.AspNetCore.Mvc.RazorPages
- Assembly
- Cuemon.Extensions.AspNetCore.Mvc.RazorPages.dll
Extension methods for the PageBase class.
public static class PageBaseExtensions
- Inheritance
-
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
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
Returns
- string
A concatenated string of the formatted base URL from CdnTagHelperOptions and the specified
src
.