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

Interface IUrlGeneratorHostResolver

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Defines a component that will decide what host to use when generating a URL to a content item.

Namespace: EPiServer.Core.Routing.Pipeline.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public interface IUrlGeneratorHostResolver

Methods

Resolve(UrlGeneratorContext, Boolean)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Resolves the host that should be used in the given context.

Declaration
HostDefinition Resolve(UrlGeneratorContext context, bool canonical)
Parameters
Type Name Description
UrlGeneratorContext context

The context for which the host should be resolved

System.Boolean canonical

If true indicates that the canonical host should be preferred over the current host.

Returns
Type Description
HostDefinition

Extension Methods