IHostBuilder.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:
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

Parametry typu

TContainerBuilder

Typ tvůrce.

Parametry

configureDelegate
Action<HostBuilderContext,TContainerBuilder>

Delegát, který konfiguruje tvůrce.

Návraty

Stejná instance IHostBuilder pro řetězení.

Platí pro