RequestTimeoutsIEndpointConventionBuilderExtensions.WithRequestTimeout Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy) |
Specifica un criterio di timeout per gli endpoint. |
WithRequestTimeout(IEndpointConventionBuilder, String) |
Specifica un criterio di timeout per gli endpoint. |
WithRequestTimeout(IEndpointConventionBuilder, TimeSpan) |
Specifica un timeout per gli endpoint. |
WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy)
Specifica un criterio di timeout per gli endpoint.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder WithRequestTimeout (this Microsoft.AspNetCore.Builder.IEndpointConventionBuilder builder, Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutPolicy policy);
static member WithRequestTimeout : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder * Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutPolicy -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function WithRequestTimeout (builder As IEndpointConventionBuilder, policy As RequestTimeoutPolicy) As IEndpointConventionBuilder
Parametri
- builder
- IEndpointConventionBuilder
Generatore di convenzioni dell'endpoint.
- policy
- RequestTimeoutPolicy
Criterio di timeout della richiesta.
Restituisce
Parametro del generatore di convenzioni originale.
Si applica a
WithRequestTimeout(IEndpointConventionBuilder, String)
Specifica un criterio di timeout per gli endpoint.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder WithRequestTimeout (this Microsoft.AspNetCore.Builder.IEndpointConventionBuilder builder, string policyName);
static member WithRequestTimeout : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function WithRequestTimeout (builder As IEndpointConventionBuilder, policyName As String) As IEndpointConventionBuilder
Parametri
- builder
- IEndpointConventionBuilder
Generatore di convenzioni dell'endpoint.
- policyName
- String
Nome (senza distinzione tra maiuscole e minuscole) del criterio da applicare per gli endpoint.
Restituisce
Parametro del generatore di convenzioni originale.
Si applica a
WithRequestTimeout(IEndpointConventionBuilder, TimeSpan)
Specifica un timeout per gli endpoint.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder WithRequestTimeout (this Microsoft.AspNetCore.Builder.IEndpointConventionBuilder builder, TimeSpan timeout);
static member WithRequestTimeout : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder * TimeSpan -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function WithRequestTimeout (builder As IEndpointConventionBuilder, timeout As TimeSpan) As IEndpointConventionBuilder
Parametri
- builder
- IEndpointConventionBuilder
Generatore di convenzioni dell'endpoint.
- timeout
- TimeSpan
Timeout da applicare per gli endpoint.
Restituisce
Parametro del generatore di convenzioni originale.