Class PageBaseExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.Mvc.RazorPages.dll
Extension methods for the Microsoft.AspNetCore.Mvc.RazorPages.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
pageModel
PageBaseThe Microsoft.AspNetCore.Mvc.RazorPages.PageBase to extend.
src
StringThe 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
PageBaseThe Microsoft.AspNetCore.Mvc.RazorPages.PageBase to extend.
src
StringThe relative source of the static resource.
Returns
- String
A concatenated string of the formatted base URL from CdnTagHelperOptions and the specified
src
.