SaaS CMS has officially launched! Learn more now.

Class BasePathResolver

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
[ServiceConfiguration(typeof(IBasePathResolver), Lifecycle = ServiceInstanceScope.Singleton)]
public class BasePathResolver : IBasePathResolver

Constructors

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

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

Methods

Resolve(RequestContext, RouteValueDictionary)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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