Compartilhar via


OptionsServiceCollectionExtensions.ConfigureAll<TOptions> Método

Definição

Registra uma ação usada para configurar todas as instâncias de um determinado tipo de opções.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ ConfigureAll(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<TOptions> ^ configureOptions);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection ConfigureAll<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class;
static member ConfigureAll : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<'Options (requires 'Options : null)> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function ConfigureAll(Of TOptions As Class) (services As IServiceCollection, configureOptions As Action(Of TOptions)) As IServiceCollection

Parâmetros de tipo

TOptions

O tipo de opções a ser configurado.

Parâmetros

services
IServiceCollection

O IServiceCollection ao qual adicionar os serviços.

configureOptions
Action<TOptions>

A ação usada para configurar as opções.

Retornos

O IServiceCollection para que chamadas adicionais possam ser encadeadas.

Aplica-se a