Class DefaultVirtualPathResolver
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public class DefaultVirtualPathResolver : 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 |