RouteShortCircuitEndpointConventionBuilderExtensions.ShortCircuit Method
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.
Short circuit the endpoint(s). The execution of the endpoint will happen in UseRouting middleware instead of UseEndpoint.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder ShortCircuit (this Microsoft.AspNetCore.Builder.IEndpointConventionBuilder builder, int? statusCode = default);
static member ShortCircuit : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder * Nullable<int> -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function ShortCircuit (builder As IEndpointConventionBuilder, Optional statusCode As Nullable(Of Integer) = Nothing) As IEndpointConventionBuilder
Parameters
- builder
- IEndpointConventionBuilder
The endpoint convention builder.
Returns
The original convention builder parameter.