HttpStandardResilienceOptions.AttemptTimeout 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定每個要求嘗試所套用逾時管線的選項。
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初始化。