Class UmbracoRouteValuesFactory
Used to create UmbracoRouteValues
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Website.Routing
Assembly: Umbraco.Web.Website.dll
Syntax
public class UmbracoRouteValuesFactory : IUmbracoRouteValuesFactory
Constructors
View SourceUmbracoRouteValuesFactory(IOptions<UmbracoRenderingDefaultsOptions>, IShortStringHelper, UmbracoFeatures, IControllerActionSearcher, IPublishedRouter)
Initializes a new instance of the UmbracoRouteValuesFactory class.
Declaration
public UmbracoRouteValuesFactory(IOptions<UmbracoRenderingDefaultsOptions> renderingDefaults, IShortStringHelper shortStringHelper, UmbracoFeatures umbracoFeatures, IControllerActionSearcher controllerActionSearcher, IPublishedRouter publishedRouter)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<UmbracoRenderingDefaultsOptions> | renderingDefaults | |
IShortStringHelper | shortStringHelper | |
UmbracoFeatures | umbracoFeatures | |
IControllerActionSearcher | controllerActionSearcher | |
IPublishedRouter | publishedRouter |
Properties
View SourceDefaultControllerName
Gets the default controller name
Declaration
protected string DefaultControllerName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceCreateAsync(HttpContext, IPublishedRequest)
Creates UmbracoRouteValues
Declaration
public async Task<UmbracoRouteValues> CreateAsync(HttpContext httpContext, IPublishedRequest request)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext | |
IPublishedRequest | request |
Returns
Type | Description |
---|---|
Task<UmbracoRouteValues> |