Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions
Extension methods for building a ServiceProvider from an IServiceCollection.
Creates a ServiceProvider containing services from the provided IServiceCollection.
public static ServiceProvider BuildServiceProvider(this IServiceCollection services, bool validateScopes)
Creates a ServiceProvider containing services from the provided IServiceCollection
optionally enabling scope validation.
public static ServiceProvider BuildServiceProvider(this IServiceCollection services, ServiceProviderOptions options)
Creates a ServiceProvider containing services from the provided IServiceCollection
optionally enabling scope validation.