RouteGroupBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A builder for defining groups of endpoints with a common prefix that implements both the IEndpointRouteBuilder and IEndpointConventionBuilder interfaces. This can be used to add endpoints with the prefix defined by MapGroup(IEndpointRouteBuilder, RoutePattern) and to customize those endpoints using conventions.
public sealed class RouteGroupBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder, Microsoft.AspNetCore.Routing.IEndpointRouteBuilder
type RouteGroupBuilder = class
interface IEndpointRouteBuilder
interface IEndpointConventionBuilder
Public NotInheritable Class RouteGroupBuilder
Implements IEndpointConventionBuilder, IEndpointRouteBuilder
- Inheritance
-
RouteGroupBuilder
- Implements
Explicit Interface Implementations
Extension Methods
| Name | Description |
|---|---|
| AddEndpointFilter<TFilterType>(RouteGroupBuilder) |
Registers a filter of type |
| DisableRequestTimeout(IEndpointConventionBuilder) |
Disables request timeout on the endpoint(s). |
| Map(IEndpointRouteBuilder, RoutePattern, Delegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern. |
| Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern. |
| Map(IEndpointRouteBuilder, String, Delegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern. |
| Map(IEndpointRouteBuilder, String, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified pattern. |
| MapAreaControllerRoute(IEndpointRouteBuilder, String, String, String, Object, Object, Object) |
Adds endpoints for controller actions to the IEndpointRouteBuilder and specifies a route
with the given |
| MapBlazorHub(IEndpointRouteBuilder, Action<HttpConnectionDispatcherOptions>) |
Maps the Blazor Hub to the default path. |
| MapBlazorHub(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>) |
Maps the Blazor Hub to the path |
| MapBlazorHub(IEndpointRouteBuilder, String) |
Maps the Blazor Hub to the path |
| MapBlazorHub(IEndpointRouteBuilder) |
Maps the Blazor Hub to the default path. |
| MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>) |
Maps incoming requests with the specified path to the provided connection pipeline. |
| MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String) |
Maps incoming requests with the specified path to the provided connection pipeline. |
| MapConnections(IEndpointRouteBuilder, String, Action<IConnectionBuilder>) |
Maps incoming requests with the specified path to the provided connection pipeline. |
| MapConnections(IEndpointRouteBuilder, String, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>) |
Maps incoming requests with the specified path to the provided connection pipeline. |
| MapControllerRoute(IEndpointRouteBuilder, String, String, Object, Object, Object) |
Adds endpoints for controller actions to the IEndpointRouteBuilder and specifies a route
with the given |
| MapControllers(IEndpointRouteBuilder) |
Adds endpoints for controller actions to the IEndpointRouteBuilder without specifying any routes. |
| MapDefaultControllerRoute(IEndpointRouteBuilder) |
Adds endpoints for controller actions to the IEndpointRouteBuilder and adds the default route
|
| MapDelete(IEndpointRouteBuilder, String, Delegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP DELETE requests for the specified pattern. |
| MapDelete(IEndpointRouteBuilder, String, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP DELETE requests for the specified pattern. |
| MapDynamicControllerRoute<TTransformer>(IEndpointRouteBuilder, String, Object, Int32) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will
attempt to select a controller action using the route values produced by |
| MapDynamicControllerRoute<TTransformer>(IEndpointRouteBuilder, String, Object) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will
attempt to select a controller action using the route values produced by |
| MapDynamicControllerRoute<TTransformer>(IEndpointRouteBuilder, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will
attempt to select a controller action using the route values produced by |
| MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String, Object, Int32) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will
attempt to select a page using the route values produced by |
| MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String, Object) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will
attempt to select a page using the route values produced by |
| MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will
attempt to select a page using the route values produced by |
| MapFallback(IEndpointRouteBuilder, Delegate) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match requests for non-file-names with the lowest possible priority. |
| MapFallback(IEndpointRouteBuilder, RequestDelegate) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match requests for non-file-names with the lowest possible priority. |
| MapFallback(IEndpointRouteBuilder, String, Delegate) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match the provided pattern with the lowest possible priority. |
| MapFallback(IEndpointRouteBuilder, String, RequestDelegate) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match the provided pattern with the lowest possible priority. |
| MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-file-names with the lowest possible priority. The request will be routed to a controller endpoint that
matches |
| MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-file-names with the lowest possible priority. The request will be routed to a controller endpoint that
matches |
| MapFallbackToAreaPage(IEndpointRouteBuilder, String, String, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-file-names with the lowest possible priority. The request will be routed to a page endpoint that
matches |
| MapFallbackToAreaPage(IEndpointRouteBuilder, String, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-file-names with the lowest possible priority. The request will be routed to a page endpoint that
matches |
| MapFallbackToController(IEndpointRouteBuilder, String, String, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-file-names with the lowest possible priority. The request will be routed to a controller endpoint that
matches |
| MapFallbackToController(IEndpointRouteBuilder, String, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-file-names with the lowest possible priority. The request will be routed to a controller endpoint that
matches |
| MapFallbackToFile(IEndpointRouteBuilder, String, StaticFileOptions) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-filenames with the lowest possible priority. The request will be routed to a
StaticFileMiddleware that attempts to serve the file specified by |
| MapFallbackToFile(IEndpointRouteBuilder, String, String, StaticFileOptions) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-filenames with the lowest possible priority. The request will be routed to a
StaticFileMiddleware that attempts to serve the file specified by |
| MapFallbackToFile(IEndpointRouteBuilder, String, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-filenames with the lowest possible priority. The request will be routed to a
StaticFileMiddleware that attempts to serve the file specified by |
| MapFallbackToFile(IEndpointRouteBuilder, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-filenames with the lowest possible priority. The request will be routed to a
StaticFileMiddleware that attempts to serve the file specified by |
| MapFallbackToPage(IEndpointRouteBuilder, String, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-file-names with the lowest possible priority. The request will be routed to a page endpoint that
matches |
| MapFallbackToPage(IEndpointRouteBuilder, String) |
Adds a specialized RouteEndpoint to the IEndpointRouteBuilder that will match
requests for non-file-names with the lowest possible priority. The request will be routed to a page endpoint that
matches |
| MapGet(IEndpointRouteBuilder, String, Delegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP GET requests for the specified pattern. |
| MapGet(IEndpointRouteBuilder, String, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP GET requests for the specified pattern. |
| MapGroup(IEndpointRouteBuilder, RoutePattern) |
Creates a RouteGroupBuilder for defining endpoints all prefixed with the specified |
| MapGroup(IEndpointRouteBuilder, String) |
Creates a RouteGroupBuilder for defining endpoints all prefixed with the specified |
| MapHealthChecks(IEndpointRouteBuilder, String, HealthCheckOptions) |
Adds a health checks endpoint to the IEndpointRouteBuilder with the specified template and options. |
| MapHealthChecks(IEndpointRouteBuilder, String) |
Adds a health checks endpoint to the IEndpointRouteBuilder with the specified template. |
| MapHub<THub>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>) |
Maps incoming requests with the specified path to the specified Hub type. |
| MapHub<THub>(IEndpointRouteBuilder, String) |
Maps incoming requests with the specified path to the specified Hub type. |
| MapIdentityApi<TUser>(IEndpointRouteBuilder) |
Add endpoints for registering, logging in, and logging out using ASP.NET Core Identity. |
| MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, Delegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified HTTP methods and pattern. |
| MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests for the specified HTTP methods and pattern. |
| MapOpenApi(IEndpointRouteBuilder, String) |
Register an endpoint onto the current application for resolving the OpenAPI document associated with the current application. |
| MapPatch(IEndpointRouteBuilder, String, Delegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP PATCH requests for the specified pattern. |
| MapPatch(IEndpointRouteBuilder, String, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP PATCH requests for the specified pattern. |
| MapPost(IEndpointRouteBuilder, String, Delegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP POST requests for the specified pattern. |
| MapPost(IEndpointRouteBuilder, String, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP POST requests for the specified pattern. |
| MapPut(IEndpointRouteBuilder, String, Delegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP PUT requests for the specified pattern. |
| MapPut(IEndpointRouteBuilder, String, RequestDelegate) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP PUT requests for the specified pattern. |
| MapRazorComponents<TRootComponent>(IEndpointRouteBuilder) |
Maps the page components defined in the specified |
| MapRazorPages(IEndpointRouteBuilder) |
Adds endpoints for Razor Pages to the IEndpointRouteBuilder. |
| MapShortCircuit(IEndpointRouteBuilder, Int32, String[]) |
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests (all verbs) for the specified prefixes. |
| MapStaticAssets(IEndpointRouteBuilder, String) |
Maps static files produced during the build as endpoints. |
| ShortCircuit(IEndpointConventionBuilder, Nullable<Int32>) |
Short circuit the endpoint(s). The execution of the endpoint will happen in UseRouting middleware instead of UseEndpoint. |
| WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy) |
Specifies a timeout policy for to the endpoint(s). |
| WithRequestTimeout(IEndpointConventionBuilder, String) |
Specifies a timeout policy for to the endpoint(s). |
| WithRequestTimeout(IEndpointConventionBuilder, TimeSpan) |
Specifies a timeout for the endpoint(s). |