Skip to content

Interface IEndpointDefinition ​

Namespace: Momentum.ServiceDefaults.Api
Assembly: Momentum.ServiceDefaults.Api.dll

Marks a class as a feature endpoint group that can be auto-discovered and mapped by

.
csharp
public interface IEndpointDefinition

Methods ​

MapEndpoints(IEndpointRouteBuilder) ​

Maps the endpoints for this feature to the specified route builder.

csharp
public static abstract RouteGroupBuilder MapEndpoints(IEndpointRouteBuilder routes)

Parameters ​

routes IEndpointRouteBuilder

The endpoint route builder to register endpoints with.

Returns ​

RouteGroupBuilder

The the endpoints were mapped under, so callers can apply group-wide conventions (authorization, rate limiting, endpoint filters, etc.).