Class ControllerActionEndpointConventionBuilderExtensions
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class ControllerActionEndpointConventionBuilderExtensions
Methods
View SourceForUmbracoPage(ControllerActionEndpointConventionBuilder, Func<ActionExecutingContext, IPublishedContent>)
Allows for defining a callback to set the returned IPublishedContent for the current request for this route
Declaration
public static void ForUmbracoPage(this ControllerActionEndpointConventionBuilder builder, Func<ActionExecutingContext, IPublishedContent> findContent)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Builder.ControllerActionEndpointConventionBuilder | builder | |
Func<Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext, IPublishedContent> | findContent |