Dela via


RequestTimeoutAttribute Class

Definition

Metadata that provides endpoint-specific request timeouts.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)]
public sealed class RequestTimeoutAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method)>]
type RequestTimeoutAttribute = class
    inherit Attribute
Public NotInheritable Class RequestTimeoutAttribute
Inherits Attribute
Inheritance
RequestTimeoutAttribute
Attributes

Remarks

The default policy will be ignored with this attribute applied.

Constructors

RequestTimeoutAttribute(Int32)

Creates a new instance of RequestTimeoutAttribute using the specified timeout.

RequestTimeoutAttribute(String)

Creates a new instance of RequestTimeoutAttribute using the specified policy.

Properties

PolicyName

The name of the policy which needs to be applied. This value is case-insensitive.

Timeout

The timeout to apply for this endpoint.

Applies to