共用方式為


WebApplicationBuilder.IHostApplicationBuilder.ConfigureContainer<TContainerBuilder> 方法

定義

void IHostApplicationBuilder.ConfigureContainer<TContainerBuilder> (Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder> configure);
abstract member Microsoft.Extensions.Hosting.IHostApplicationBuilder.ConfigureContainer : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> * Action<'ContainerBuilder> -> unit
override this.Microsoft.Extensions.Hosting.IHostApplicationBuilder.ConfigureContainer : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> * Action<'ContainerBuilder> -> unit
Sub ConfigureContainer(Of TContainerBuilder) (factory As IServiceProviderFactory(Of TContainerBuilder), configure As Action(Of TContainerBuilder)) Implements IHostApplicationBuilder.ConfigureContainer

類型參數

TContainerBuilder

參數

factory
IServiceProviderFactory<TContainerBuilder>
configure
Action<TContainerBuilder>

實作

適用於