IHostBuilder.ConfigureContainer<TContainerBuilder> Método

Definição

Habilita a configuração do contêiner de dependência instanciado. Isso pode ser chamado várias vezes e os resultados serão aditivos.

public:
generic <typename TContainerBuilder>
 Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureContainer(Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, TContainerBuilder> ^ configureDelegate);
public Microsoft.Extensions.Hosting.IHostBuilder ConfigureContainer<TContainerBuilder> (Action<Microsoft.Extensions.Hosting.HostBuilderContext,TContainerBuilder> configureDelegate);
abstract member ConfigureContainer : Action<Microsoft.Extensions.Hosting.HostBuilderContext, 'ContainerBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Function ConfigureContainer(Of TContainerBuilder) (configureDelegate As Action(Of HostBuilderContext, TContainerBuilder)) As IHostBuilder

Parâmetros de tipo

TContainerBuilder

O tipo de construtor.

Parâmetros

configureDelegate
Action<HostBuilderContext,TContainerBuilder>

O delegado que configura o construtor.

Retornos

A mesma instância do IHostBuilder para encadeamento.

Aplica-se a