PollyServiceCollectionExtensions.AddPolicyRegistry 메서드

정의

오버로드

AddPolicyRegistry(IServiceCollection)

서비스 유형이 Polly.Registry.IPolicyRegistry`1Polly.Registry.IReadOnlyPolicyRegistry`1인 서비스 컬렉션에서 빈 Polly.Registry.PolicyRegistry를 등록하고 새로 만든 레지스트리를 반환합니다.Registers an empty Polly.Registry.PolicyRegistry in the service collection with service types Polly.Registry.IPolicyRegistry`1, and Polly.Registry.IReadOnlyPolicyRegistry`1 and returns the newly created registry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

서비스 유형이 Polly.Registry.IPolicyRegistry`1Polly.Registry.IReadOnlyPolicyRegistry`1인 서비스 컬렉션에서 제공된 Polly.Registry.IPolicyRegistry`1을 등록하고 제공된 레지스트리를 반환합니다.Registers the provided Polly.Registry.IPolicyRegistry`1 in the service collection with service types Polly.Registry.IPolicyRegistry`1, and Polly.Registry.IReadOnlyPolicyRegistry`1 and returns the provided registry.

AddPolicyRegistry(IServiceCollection)

서비스 유형이 Polly.Registry.IPolicyRegistry`1Polly.Registry.IReadOnlyPolicyRegistry`1인 서비스 컬렉션에서 빈 Polly.Registry.PolicyRegistry를 등록하고 새로 만든 레지스트리를 반환합니다.Registers an empty Polly.Registry.PolicyRegistry in the service collection with service types Polly.Registry.IPolicyRegistry`1, and Polly.Registry.IReadOnlyPolicyRegistry`1 and returns the newly created registry.

public:
[System::Runtime::CompilerServices::Extension]
 static Polly::Registry::IPolicyRegistry<System::String ^> ^ AddPolicyRegistry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Polly.Registry.IPolicyRegistry<string> AddPolicyRegistry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddPolicyRegistry : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Polly.Registry.IPolicyRegistry<string>
<Extension()>
Public Function AddPolicyRegistry (services As IServiceCollection) As IPolicyRegistry(Of String)

매개 변수

반환

Polly.Registry.IPolicyRegistry<String>

새로 만든 Polly.Registry.PolicyRegistry입니다.The newly created Polly.Registry.PolicyRegistry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

서비스 유형이 Polly.Registry.IPolicyRegistry`1Polly.Registry.IReadOnlyPolicyRegistry`1인 서비스 컬렉션에서 제공된 Polly.Registry.IPolicyRegistry`1을 등록하고 제공된 레지스트리를 반환합니다.Registers the provided Polly.Registry.IPolicyRegistry`1 in the service collection with service types Polly.Registry.IPolicyRegistry`1, and Polly.Registry.IReadOnlyPolicyRegistry`1 and returns the provided registry.

public:
[System::Runtime::CompilerServices::Extension]
 static Polly::Registry::IPolicyRegistry<System::String ^> ^ AddPolicyRegistry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Polly::Registry::IPolicyRegistry<System::String ^> ^ registry);
public static Polly.Registry.IPolicyRegistry<string> AddPolicyRegistry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Polly.Registry.IPolicyRegistry<string> registry);
static member AddPolicyRegistry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Polly.Registry.IPolicyRegistry<string> -> Polly.Registry.IPolicyRegistry<string>
<Extension()>
Public Function AddPolicyRegistry (services As IServiceCollection, registry As IPolicyRegistry(Of String)) As IPolicyRegistry(Of String)

매개 변수

registry
Polly.Registry.IPolicyRegistry<String>

Polly.Registry.IPolicyRegistry`1The Polly.Registry.IPolicyRegistry`1.

반환

Polly.Registry.IPolicyRegistry<String>

제공된 Polly.Registry.IPolicyRegistry`1입니다.The provided Polly.Registry.IPolicyRegistry`1.

적용 대상