SaaS CMS has officially launched! Learn more now.

Class EndpointRouteBuilderExtensions

Extends Microsoft.AspNetCore.Routing.IEndpointRouteBuilder with extension methods for registering content routes

Inheritance
System.Object
EndpointRouteBuilderExtensions
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3
Syntax
public static class EndpointRouteBuilderExtensions : Object

Methods

MapEPiServerExtensionEndpoints(IEndpointRouteBuilder)

Maps EPiServer extensions endpoints registered through IEndpointRoutingExtension.

Declaration
public static IEndpointRouteBuilder MapEPiServerExtensionEndpoints(this IEndpointRouteBuilder defaultEndpointRouteBuilder)
Parameters
Type Name Description
Microsoft.AspNetCore.Routing.IEndpointRouteBuilder defaultEndpointRouteBuilder

The endpoint builder

Returns
Type Description
Microsoft.AspNetCore.Routing.IEndpointRouteBuilder
Remarks

Recommendation is to do additional endpoint registration either before or after this method is called, not both before and after. Reason for that is that can cause endpoints to be duplicate registered