Bagikan melalui


HttpStandardResilienceOptions.AttemptTimeout Properti

Definisi

Mendapatkan atau mengatur opsi untuk alur batas waktu yang diterapkan per setiap upaya permintaan.

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

Nilai Properti

Atribut

Keterangan

Secara default, properti ini diinisialisasi dengan instans unik menggunakan HttpTimeoutStrategyOptions kustom Polly.Timeout.TimeoutStrategyOptions.Timeout 10 detik.

Berlaku untuk