RequestTimeoutsIEndpointConventionBuilderExtensions.WithRequestTimeout 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.
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)
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)
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)
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.