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

Interface IUrlGeneratorHostResolver

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: 12.0.3
Syntax
public interface IUrlGeneratorHostResolver

Methods

Resolve(UrlGeneratorContext, Boolean, Boolean)

Resolves the host that should be used in the given context.

Declaration
HostDefinition Resolve(UrlGeneratorContext context, bool canonical, bool forceAbsolute)
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.

System.Boolean forceAbsolute

If true an host should be resolved

Returns
Type Description
HostDefinition

Extension Methods