Compartilhar via


ConfigureHostBuilder.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 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
override this.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

Parâmetros

configureDelegate
Action<HostBuilderContext,TContainerBuilder>

Retornos

Implementações

Aplica-se a