Compartir a través de


StartupBase.CreateServiceProvider(IServiceCollection) Método

Definición

Crea una IServiceProvider instancia de para un objeto determinado ConfigureServices(IServiceCollection).

public:
 virtual IServiceProvider ^ CreateServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public virtual IServiceProvider CreateServiceProvider (Microsoft.Extensions.DependencyInjection.IServiceCollection services);
abstract member CreateServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
override this.CreateServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> IServiceProvider
Public Overridable Function CreateServiceProvider (services As IServiceCollection) As IServiceProvider

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

Devoluciones

IServiceProvider.

Se aplica a