Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
RouteShortCircuitEndpointRouteBuilderExtensions.MapShortCircuit Method
Definition
- Namespace:
- Microsoft.AspNetCore.Routing
- Assembly:
- Microsoft.AspNetCore.Routing.dll
- Package:
- Microsoft.AspNetCore.App.Ref v10.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.App.Ref v8.0.19
- Package:
- Microsoft.AspNetCore.App.Ref v9.0.8
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.
Adds a RouteEndpoint to the IEndpointRouteBuilder that matches HTTP requests (all verbs) for the specified prefixes.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapShortCircuit(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder builder, int statusCode, params string[] routePrefixes);
static member MapShortCircuit : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * int * string[] -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapShortCircuit (builder As IEndpointRouteBuilder, statusCode As Integer, ParamArray routePrefixes As String()) As IEndpointConventionBuilder
Parameters
- builder
- IEndpointRouteBuilder
The IEndpointRouteBuilder to add the route to.
- statusCode
- Int32
The status code to set in the response.
- routePrefixes
- String[]
An array of route prefixes to be short circuited.
Returns
A IEndpointConventionBuilder that can be used to further customize the endpoint.
Applies to
Feedback
Was this page helpful?
