Dela via


RequestTimeoutOptions Class

Definition

Specifies options for the request timeouts middleware.

public sealed class RequestTimeoutOptions
type RequestTimeoutOptions = class
Public NotInheritable Class RequestTimeoutOptions
Inheritance
RequestTimeoutOptions

Constructors

RequestTimeoutOptions()

Properties

DefaultPolicy

Applied to any request without a policy set via endpoint metadata. No value by default.

Policies

Dictionary of policies that would be applied per endpoint. Policy names are case-insensitive.

Methods

AddPolicy(String, RequestTimeoutPolicy)

Adds a new policy.

AddPolicy(String, TimeSpan)

Adds a new policy.

Applies to