Class ServiceCollectionContainerBuilderExtensions
- Namespace
- Microsoft.Extensions.DependencyInjection
- Assembly
- nanoFramework.DependencyInjection.dll
Extension methods for building a ServiceProvider from an IServiceCollection.
public static class ServiceCollectionContainerBuilderExtensions- Inheritance
- 
      
      ServiceCollectionContainerBuilderExtensions
- Inherited Members
Methods
BuildServiceProvider(IServiceCollection)
Creates a ServiceProvider containing services from the provided IServiceCollection.
public static ServiceProvider BuildServiceProvider(this IServiceCollection services)Parameters
- servicesIServiceCollection
- The IServiceCollection containing service descriptors. 
Returns
BuildServiceProvider(IServiceCollection, ServiceProviderOptions)
Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.
public static ServiceProvider BuildServiceProvider(this IServiceCollection services, ServiceProviderOptions options)Parameters
- servicesIServiceCollection
- The IServiceCollection containing service descriptors. 
- optionsServiceProviderOptions
- Configures various service provider behaviors.