ResilienceServiceCollectionExtensions.AddResilienceEnricher 方法

定义

添加复原扩充器。

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

参数

services
IServiceCollection

服务。

返回

输入 services

例外

servicesnull

注解

此方法在内置到 Polly 库的默认维度的基础上添加其他维度。 其中包括:

适用于