November Happy Hour will be moved to Thursday December 5th.

Class DefaultVirtualPathResolver

Have not found any similar logic in ASP.NET Core as VirtualPathUtility offers therefore we have this logic our selves for now. Should be replaced with ASP.NET Core logic when/if that exist

Inheritance
System.Object
DefaultVirtualPathResolver
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class DefaultVirtualPathResolver : Object, IVirtualPathResolver

Constructors

DefaultVirtualPathResolver(IWebHostingEnvironment)

Declaration
public DefaultVirtualPathResolver(IWebHostingEnvironment webEnvironment)
Parameters
Type Name Description
IWebHostingEnvironment webEnvironment

Methods

ToAbsolute(String)

Declaration
public string ToAbsolute(string virtualPath)
Parameters
Type Name Description
System.String virtualPath
Returns
Type Description
System.String

ToAppRelative(String)

Declaration
public string ToAppRelative(string absolutePath)
Parameters
Type Name Description
System.String absolutePath
Returns
Type Description
System.String

Implements

Extension Methods