Bagikan melalui


HedgingEndpointOptions.Timeout Properti

Definisi

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

public:
 property Microsoft::Extensions::Http::Resilience::HttpTimeoutStrategyOptions ^ Timeout { 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 Timeout { get; set; }
[<Microsoft.Extensions.Options.ValidateObjectMembers>]
[<System.ComponentModel.DataAnnotations.Required>]
member this.Timeout : Microsoft.Extensions.Http.Resilience.HttpTimeoutStrategyOptions with get, set
Public Property Timeout As HttpTimeoutStrategyOptions

Nilai Properti

Atribut

Keterangan

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

Berlaku untuk