Class UrlResolverContext
The context that is used during url resolving. Different IUrl
Inheritance
Namespace: EPiServer.Core.Routing.Pipeline
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class UrlResolverContext : Object
Constructors
UrlResolverContext(Uri)
Creates a new context instance
Declaration
public UrlResolverContext(Uri url)
Parameters
Type | Name | Description |
---|---|---|
System. |
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. |
ContextMode
The context mode to resolve the url for
Declaration
public ContextMode ContextMode { get; set; }
Property Value
Type | Description |
---|---|
Context |
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 |
---|---|
Host |
RemainingPath
The part of the url that have not yet been consumed
Declaration
public string RemainingPath { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
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. |
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. |