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: 10.10.4Syntax
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 |