RouteShortCircuitEndpointConventionBuilderExtensions.ShortCircuit Methode

Definition

Kurzschluss der Endpunkte. Die Ausführung des Endpunkts erfolgt in UseRouting-Middleware anstelle von 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

Parameter

builder
IEndpointConventionBuilder

Der Endpunktkonventions-Generator.

statusCode
Nullable<Int32>

Der status Code, der in der Antwort festgelegt werden soll.

Gibt zurück

Der ursprüngliche Konventions-Generator-Parameter.

Gilt für: