共用方式為


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

屬性值

屬性

備註

根據預設,此屬性會使用自定義 Polly.Timeout.TimeoutStrategyOptions.Timeout 10 秒的唯一實例HttpTimeoutStrategyOptions初始化。

適用於