Sdílet prostřednictvím


ConfigureHostBuilder.ConfigureContainer<TContainerBuilder> Metoda

Definice

Umožňuje konfiguraci kontejneru závislostí s instancemi. Tuto možnost lze volat vícekrát a výsledky budou sčítat.

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

Parametry typu

TContainerBuilder

Parametry

configureDelegate
Action<HostBuilderContext,TContainerBuilder>

Návraty

Implementuje

Platí pro