RouteGroupContext Class

Definition

Represents the information accessible to GetGroupedEndpoints(RouteGroupContext).

public sealed class RouteGroupContext
type RouteGroupContext = class
Public NotInheritable Class RouteGroupContext
Inheritance
RouteGroupContext

Constructors

RouteGroupContext()

Properties

ApplicationServices

Gets the IServiceProvider instance used to access application services.

Conventions

Gets all conventions added to ancestor RouteGroupBuilder instances returned from MapGroup(IEndpointRouteBuilder, RoutePattern) via Add(Action<EndpointBuilder>). These should be applied in order when building every RouteEndpoint returned from GetGroupedEndpoints(RouteGroupContext).

FinallyConventions

Gets all conventions added to ancestor RouteGroupBuilder instances returned from MapGroup(IEndpointRouteBuilder, RoutePattern) via Add(Action<EndpointBuilder>). These should be applied in LIFO order when building every RouteEndpoint returned from GetGroupedEndpoints(RouteGroupContext).

Prefix

Gets the RoutePattern which should prefix the RoutePattern of all RouteEndpoint instances returned by the call to GetGroupedEndpoints(RouteGroupContext). This accounts for nested groups and gives the full group prefix not just the prefix supplied to the innermost call to MapGroup(IEndpointRouteBuilder, RoutePattern).

Applies to