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
servicesIServiceCollectionThe 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
servicesIServiceCollectionThe IServiceCollection containing service descriptors.
optionsServiceProviderOptionsConfigures various service provider behaviors.