IServiceProviderFactory<TContainerBuilder> 介面

定義

提供用來建立容器特定建立器和 IServiceProvider 的擴充點。Provides an extension point for creating a container specific builder and an IServiceProvider.

generic <typename TContainerBuilder>
public interface class IServiceProviderFactory
public interface IServiceProviderFactory<TContainerBuilder>
type IServiceProviderFactory<'ContainerBuilder> = interface
Public Interface IServiceProviderFactory(Of TContainerBuilder)

類型參數

TContainerBuilder
衍生

方法

CreateBuilder(IServiceCollection)

IServiceCollection 建立容器建立器。Creates a container builder from an IServiceCollection.

CreateServiceProvider(TContainerBuilder)

從容器建立器建立 IServiceProviderCreates an IServiceProvider from the container builder.

適用於