Class DefaultUrlAssembler
Provides the default implementation of IUrlAssembler.
Inheritance
object
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public class DefaultUrlAssembler : IUrlAssembler
Constructors
View SourceDefaultUrlAssembler(UriUtility)
Initializes a new instance of the DefaultUrlAssembler class.
Declaration
public DefaultUrlAssembler(UriUtility uriUtility)
Parameters
| Type | Name | Description |
|---|---|---|
| UriUtility | uriUtility | The URI utility. |
Methods
View SourceAssembleUrl(string, Uri, UrlMode)
Assembles a URL from the specified path, current URI, and URL mode.
Declaration
public Uri AssembleUrl(string path, Uri current, UrlMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path component of the URL. |
| Uri | current | The current request URI. |
| UrlMode | mode | The URL mode determining how the URL should be formatted. |
Returns
| Type | Description |
|---|---|
| Uri | The assembled System.Uri. |