Share via


RequestTimeoutsIEndpointConventionBuilderExtensions.WithRequestTimeout Method

Definition

Overloads

WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy)

Specifies a timeout policy for to the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, String)

Specifies a timeout policy for to the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, TimeSpan)

Specifies a timeout for the endpoint(s).

WithRequestTimeout(IEndpointConventionBuilder, RequestTimeoutPolicy)

Source:
RequestTimeoutsIEndpointConventionBuilderExtensions.cs

Specifies a timeout policy for to the endpoint(s).

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

Parameters

builder
IEndpointConventionBuilder

The endpoint convention builder.

policy
RequestTimeoutPolicy

The request timeout policy.

Returns

The original convention builder parameter.

Applies to

WithRequestTimeout(IEndpointConventionBuilder, String)

Source:
RequestTimeoutsIEndpointConventionBuilderExtensions.cs

Specifies a timeout policy for to the endpoint(s).

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

Parameters

builder
IEndpointConventionBuilder

The endpoint convention builder.

policyName
String

The name (case-insensitive) of the policy to apply for the endpoint(s).

Returns

The original convention builder parameter.

Applies to

WithRequestTimeout(IEndpointConventionBuilder, TimeSpan)

Source:
RequestTimeoutsIEndpointConventionBuilderExtensions.cs

Specifies a timeout for the endpoint(s).

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

Parameters

builder
IEndpointConventionBuilder

The endpoint convention builder.

timeout
TimeSpan

The timeout to apply for the endpoint(s).

Returns

The original convention builder parameter.

Applies to