Sdílet prostřednictvím


HostingHostBuilderExtensions.ConfigureContainer<TContainerBuilder> Metoda

Definice

Umožňuje konfiguraci kontejneru závislostí s instancí. To může být volána vícekrát a výsledky budou sčítat.

public:
generic <typename TContainerBuilder>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureContainer(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<TContainerBuilder> ^ configureDelegate);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureContainer<TContainerBuilder> (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<TContainerBuilder> configureDelegate);
static member ConfigureContainer : Microsoft.Extensions.Hosting.IHostBuilder * Action<'ContainerBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureContainer(Of TContainerBuilder) (hostBuilder As IHostBuilder, configureDelegate As Action(Of TContainerBuilder)) As IHostBuilder

Parametry typu

TContainerBuilder

Typ tvůrce.

Parametry

hostBuilder
IHostBuilder

Konfigurace IHostBuilder .

configureDelegate
Action<TContainerBuilder>

Delegát pro konfiguraci .TContainerBuilder

Návraty

Stejná instance IHostBuilder pro řetězení.

Platí pro