HttpContextExtensions Class
Westwind.AspNetCore.Extensions.HttpContextExtensions
Class Members
Member | Description | |
---|---|---|
![]() ![]() |
MapPath | Maps a virtual or relative path to a physical path in a Web site,using the WebRootPath as the base path (ie. the `wwwroot` folder)
public static string MapPath(HttpContext context, string relativePath,
IWebHostEnvironment host, string basePath,
bool useAppBasePath)
|
![]() ![]() |
ResolveUrl | Resolves of a virtual Url to a fully qualified Url.* ~/ ~ as base path* / as base path* https:// http:// return as is* Any relative path: resolved based on current Request path In this scenario ./ or…
public static string ResolveUrl(HttpContext context, string url,
string basepath, bool returnAbsoluteUrl,
bool ignoreRelativePaths, bool ignoreRootPaths)
|
![]() ![]() |
SetUserLocale | Sets the culture and UI culture to a specific culture. Allows overriding of currencyand optionally disallows setting the UI culture.You can also limit the locales that are allowed in order to…
public static void SetUserLocale(HttpContext httpContext, string culture,
string uiCulture, string currencySymbol,
bool setUiCulture, string allowedLocales)
|
Assembly: Westwind.AspNetCore.dll
© West Wind Technologies, 2025 • Updated: 2025-03-08
Comment or report problem with topic