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

Class BasePathResolver

This class supports the EPiServer infrastructure and is not intended to be used directly from your code.

Inheritance
System.Object
BasePathResolver
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.Routing
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
[ServiceConfiguration(typeof(IBasePathResolver), Lifecycle = ServiceInstanceScope.Singleton)]
public class BasePathResolver : IBasePathResolver

Constructors

BasePathResolver(IHostingEnvironment, SiteDefinitionResolver, ServiceAccessor<SiteDefinition>, ServiceAccessor<HttpContextBase>)

Declaration
public BasePathResolver(IHostingEnvironment hostingEnvironment, SiteDefinitionResolver siteDefinitionResolver, ServiceAccessor<SiteDefinition> currentSite, ServiceAccessor<HttpContextBase> httpContext)
Parameters
Type Name Description
IHostingEnvironment hostingEnvironment
SiteDefinitionResolver siteDefinitionResolver
ServiceAccessor<SiteDefinition> currentSite
ServiceAccessor<System.Web.HttpContextBase> httpContext

Methods

Resolve(RequestContext, RouteValueDictionary)

The implementation resolves root dir by comparing the SiteDefinition for the routed content with Current if they are same the root dir vill be ApplicationVirtualPath. If they differ (typically when cross linking in an enterprise setup) then RootDir will be resolved as SiteUrl to the site linking to.

Declaration
public virtual string Resolve(RequestContext request, RouteValueDictionary routeValues)
Parameters
Type Name Description
System.Web.Routing.RequestContext request

The request.

System.Web.Routing.RouteValueDictionary routeValues

The route values.

Returns
Type Description
System.String

Implements

Extension Methods