Bagikan melalui


ResilienceServiceCollectionExtensions.AddResilienceEnricher Metode

Definisi

Menambahkan pengaya ketahanan.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddResilienceEnricher(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddResilienceEnricher (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddResilienceEnricher : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddResilienceEnricher (services As IServiceCollection) As IServiceCollection

Parameter

services
IServiceCollection

Layanan.

Mengembalikan

Input services.

Pengecualian

servicesadalah null.

Keterangan

Metode ini menambahkan dimensi tambahan di atas dimensi default yang bawaan ke pustaka Polly. Ini termasuk:

Berlaku untuk