HttpStandardResilienceOptions.AttemptTimeout 属性

定义

获取或设置每次请求尝试应用的超时管道的选项。

public:
 property Microsoft::Extensions::Http::Resilience::HttpTimeoutStrategyOptions ^ AttemptTimeout { Microsoft::Extensions::Http::Resilience::HttpTimeoutStrategyOptions ^ get(); void set(Microsoft::Extensions::Http::Resilience::HttpTimeoutStrategyOptions ^ value); };
[Microsoft.Extensions.Options.ValidateObjectMembers]
[System.ComponentModel.DataAnnotations.Required]
public Microsoft.Extensions.Http.Resilience.HttpTimeoutStrategyOptions AttemptTimeout { get; set; }
[<Microsoft.Extensions.Options.ValidateObjectMembers>]
[<System.ComponentModel.DataAnnotations.Required>]
member this.AttemptTimeout : Microsoft.Extensions.Http.Resilience.HttpTimeoutStrategyOptions with get, set
Public Property AttemptTimeout As HttpTimeoutStrategyOptions

属性值

属性

注解

默认情况下,此属性使用 的唯一实例 HttpTimeoutStrategyOptions 使用 10 秒的自定义 Polly.Timeout.TimeoutStrategyOptions.Timeout 初始化。

适用于