Comparteix a través de


IServiceProviderFactory<TContainerBuilder>.CreateBuilder Método

Definición

Crea un generador de contenedores a partir de IServiceCollection.

public:
 TContainerBuilder CreateBuilder(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public TContainerBuilder CreateBuilder (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member CreateBuilder : Microsoft.Extensions.DependencyInjection.IServiceCollection -> 'ContainerBuilder
Public Function CreateBuilder (services As IServiceCollection) As TContainerBuilder

Parámetros

services
IServiceCollection

Colección de servicios.

Devoluciones

TContainerBuilder

Un generador de contenedores que se puede usar para crear una interfaz IServiceProvider.

Se aplica a