Share via


RequestTimeoutAttribute Constructors

Definition

Overloads

RequestTimeoutAttribute(Int32)

Creates a new instance of RequestTimeoutAttribute using the specified timeout.

RequestTimeoutAttribute(String)

Creates a new instance of RequestTimeoutAttribute using the specified policy.

RequestTimeoutAttribute(Int32)

Creates a new instance of RequestTimeoutAttribute using the specified timeout.

public RequestTimeoutAttribute (int milliseconds);
new Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutAttribute : int -> Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutAttribute
Public Sub New (milliseconds As Integer)

Parameters

milliseconds
Int32

The duration, in milliseconds, of the timeout for this endpoint.

Applies to

RequestTimeoutAttribute(String)

Creates a new instance of RequestTimeoutAttribute using the specified policy.

public RequestTimeoutAttribute (string policyName);
new Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutAttribute : string -> Microsoft.AspNetCore.Http.Timeouts.RequestTimeoutAttribute
Public Sub New (policyName As String)

Parameters

policyName
String

The name of the policy which needs to be applied (case-insensitive).

Applies to