Condividi tramite


RequestTimeoutsIEndpointConventionBuilderExtensions.WithRequestTimeout Metodo

Definizione

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)

Origine:
RequestTimeoutsIEndpointConventionBuilderExtensions.cs

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)

Origine:
RequestTimeoutsIEndpointConventionBuilderExtensions.cs

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)

Origine:
RequestTimeoutsIEndpointConventionBuilderExtensions.cs

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.

Si applica a