PollyServiceCollectionExtensions.AddPolicyRegistry Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
AddPolicyRegistry(IServiceCollection) |
Registra um PolicyRegistry vazio na coleção de serviços com os tipos de serviço IPolicyRegistry<TKey> e IReadOnlyPolicyRegistry<TKey> e retorna o registro recém-criado. |
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>) |
Registra o IPolicyRegistry<TKey> fornecido na coleção de serviços com os tipos de serviço IPolicyRegistry<TKey> e IReadOnlyPolicyRegistry<TKey> e retorna o registro fornecido. |
AddPolicyRegistry(IServiceCollection, Action<IServiceProvider,IPolicyRegistry<String>>) |
AddPolicyRegistry(IServiceCollection)
Registra um PolicyRegistry vazio na coleção de serviços com os tipos de serviço IPolicyRegistry<TKey> e IReadOnlyPolicyRegistry<TKey> e retorna o registro recém-criado.
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)
Parâmetros
- services
- IServiceCollection
Retornos
O PolicyRegistry recém-criado.
Aplica-se a
AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)
Registra o IPolicyRegistry<TKey> fornecido na coleção de serviços com os tipos de serviço IPolicyRegistry<TKey> e IReadOnlyPolicyRegistry<TKey> e retorna o registro fornecido.
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)
Parâmetros
- services
- IServiceCollection
- registry
- IPolicyRegistry<String>
Retornos
A IPolicyRegistry<TKey> fornecida.
Aplica-se a
AddPolicyRegistry(IServiceCollection, Action<IServiceProvider,IPolicyRegistry<String>>)
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddPolicyRegistry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<IServiceProvider ^, Polly::Registry::IPolicyRegistry<System::String ^> ^> ^ configureRegistry);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddPolicyRegistry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<IServiceProvider,Polly.Registry.IPolicyRegistry<string>> configureRegistry);
static member AddPolicyRegistry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<IServiceProvider, Polly.Registry.IPolicyRegistry<string>> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddPolicyRegistry (services As IServiceCollection, configureRegistry As Action(Of IServiceProvider, IPolicyRegistry(Of String))) As IServiceCollection
Parâmetros
- services
- IServiceCollection
- configureRegistry
- Action<IServiceProvider,IPolicyRegistry<String>>