Table of Contents

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 IServiceCollection

The IServiceCollection containing service descriptors.

Returns

ServiceProvider

The ServiceProvider.

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 IServiceCollection

The IServiceCollection containing service descriptors.

options ServiceProviderOptions

Configures various service provider behaviors.

Returns

ServiceProvider

The ServiceProvider.