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
services
IServiceCollectionThe 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
services
IServiceCollectionThe IServiceCollection containing service descriptors.
options
ServiceProviderOptionsConfigures various service provider behaviors.