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

Class UrlResolverContext

The context that is used during url resolving. Different IUrlResolverPipelineStep instances in the pipeline can update the context depending on UrlResolverOptions.

Inheritance
System.Object
UrlResolverContext
Namespace: EPiServer.Core.Routing.Pipeline
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class UrlResolverContext : Object

Constructors

UrlResolverContext(Uri)

Creates a new context instance

Declaration
public UrlResolverContext(Uri url)
Parameters
Type Name Description
System.Uri url

The url that is being resolved

Properties

Content

The Content that the url has been resolved to or null if not yet resolved

Declaration
public IContent Content { get; set; }
Property Value
Type Description
IContent

ContentLanguage

The language version for the content that the url has been resolved to or null if not yet resolved

Declaration
public CultureInfo ContentLanguage { get; }
Property Value
Type Description
System.Globalization.CultureInfo

ContextMode

The context mode to resolve the url for

Declaration
public ContextMode ContextMode { get; set; }
Property Value
Type Description
ContextMode

HostDefinition

The host that has been resolved from the url or null if not yet resolved

Declaration
public HostDefinition HostDefinition { get; set; }
Property Value
Type Description
HostDefinition

RemainingPath

The part of the url that have not yet been consumed

Declaration
public string RemainingPath { get; set; }
Property Value
Type Description
System.String

RequestedLanguage

The language that was resolved from the url or host mapping, or null if not yet resolved

Declaration
public CultureInfo RequestedLanguage { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo

RouteValues

Custom values that can be used to pass data between different steps in the pipeline.

Declaration
public IDictionary<string, object> RouteValues { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Object>

Url

The Url that is being resolved

Declaration
public Url Url { get; set; }
Property Value
Type Description
Url

UrlHasLanguageSegment

The language was resolved from a language segment in the url

Declaration
public bool UrlHasLanguageSegment { get; set; }
Property Value
Type Description
System.Boolean

Extension Methods