PollyServiceCollectionExtensions.AddPolicyRegistry メソッド

定義

オーバーロード

AddPolicyRegistry(IServiceCollection)

Polly.Registry.PolicyRegistryPolly.Registry.IPolicyRegistry`1 というサービスの種類でサービス コレクションに空の Polly.Registry.IReadOnlyPolicyRegistry`1 を登録し、新しく作成されたレジストリを返します。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.IPolicyRegistry`1 というサービスの種類でサービス コレクションに指定の Polly.Registry.IReadOnlyPolicyRegistry`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.PolicyRegistryPolly.Registry.IPolicyRegistry`1 というサービスの種類でサービス コレクションに空の Polly.Registry.IReadOnlyPolicyRegistry`1 を登録し、新しく作成されたレジストリを返します。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.PolicyRegistryThe newly created Polly.Registry.PolicyRegistry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Polly.Registry.IPolicyRegistry`1Polly.Registry.IPolicyRegistry`1 というサービスの種類でサービス コレクションに指定の Polly.Registry.IReadOnlyPolicyRegistry`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`1The provided Polly.Registry.IPolicyRegistry`1.

適用対象