10 instantiations of ServiceProviderOptions
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
232new ServiceProviderOptions
Microsoft.AspNetCore.Hosting (2)
GenericHost\WebHostBuilderBase.cs (1)
66var options = new ServiceProviderOptions();
WebHostBuilderExtensions.cs (1)
203var options = new ServiceProviderOptions();
Microsoft.AspNetCore.Hosting.Tests (1)
StartupManagerTests.cs (1)
311serviceCollection.AddSingleton<IServiceProviderFactory<IServiceCollection>>(new DefaultServiceProviderFactory(new ServiceProviderOptions
Microsoft.Extensions.DependencyInjection (2)
ServiceCollectionContainerBuilderExtensions.cs (1)
34return services.BuildServiceProvider(new ServiceProviderOptions { ValidateScopes = validateScopes });
ServiceProviderOptions.cs (1)
14internal static readonly ServiceProviderOptions Default = new ServiceProviderOptions();
Microsoft.Extensions.Hosting (3)
HostBuilder.cs (1)
353_serviceProviderFactory = new ServiceFactoryAdapter<IServiceCollection>(new DefaultServiceProviderFactory(new ServiceProviderOptions { ValidateOnBuild = true, ValidateScopes = true }));
HostingHostBuilderExtensions.cs (2)
86var options = new ServiceProviderOptions(); 328return new ServiceProviderOptions
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
52var serviceProviderOptions = new ServiceProviderOptions
25 references to ServiceProviderOptions
Microsoft.AspNetCore.Hosting (9)
GenericHost\HostingStartupWebHostBuilder.cs (1)
66public IWebHostBuilder UseDefaultServiceProvider(Action<WebHostBuilderContext, ServiceProviderOptions> configure)
GenericHost\ISupportsUseDefaultServiceProvider.cs (1)
10IWebHostBuilder UseDefaultServiceProvider(Action<WebHostBuilderContext, ServiceProviderOptions> configure);
GenericHost\WebHostBuilderBase.cs (2)
61public IWebHostBuilder UseDefaultServiceProvider(Action<WebHostBuilderContext, ServiceProviderOptions> configure) 66var options = new ServiceProviderOptions();
WebHostBuilderExtensions.cs (5)
180/// <param name="configure">A callback used to configure the <see cref="ServiceProviderOptions"/> for the default <see cref="IServiceProvider"/>.</param> 182public static IWebHostBuilder UseDefaultServiceProvider(this IWebHostBuilder hostBuilder, Action<ServiceProviderOptions> configure) 191/// <param name="configure">A callback used to configure the <see cref="ServiceProviderOptions"/> for the default <see cref="IServiceProvider"/>.</param> 193public static IWebHostBuilder UseDefaultServiceProvider(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, ServiceProviderOptions> configure) 203var options = new ServiceProviderOptions();
Microsoft.AspNetCore.Hosting.Tests (1)
Fakes\GenericWebHostBuilderWrapper.cs (1)
65public IWebHostBuilder UseDefaultServiceProvider(Action<WebHostBuilderContext, ServiceProviderOptions> configure)
Microsoft.Extensions.DependencyInjection (7)
DefaultServiceProviderFactory.cs (3)
13private readonly ServiceProviderOptions _options; 19public DefaultServiceProviderFactory() : this(ServiceProviderOptions.Default) 29public DefaultServiceProviderFactory(ServiceProviderOptions options)
ServiceCollectionContainerBuilderExtensions.cs (2)
20return BuildServiceProvider(services, ServiceProviderOptions.Default); 46public static ServiceProvider BuildServiceProvider(this IServiceCollection services, ServiceProviderOptions options)
ServiceProvider.cs (1)
52internal ServiceProvider(ICollection<ServiceDescriptor> serviceDescriptors, ServiceProviderOptions options)
ServiceProviderOptions.cs (1)
14internal static readonly ServiceProviderOptions Default = new ServiceProviderOptions();
Microsoft.Extensions.Hosting (5)
HostApplicationBuilder.cs (1)
101ServiceProviderOptions? serviceProviderOptions = null;
HostingHostBuilderExtensions.cs (4)
73public static IHostBuilder UseDefaultServiceProvider(this IHostBuilder hostBuilder, Action<ServiceProviderOptions> configure) 82public static IHostBuilder UseDefaultServiceProvider(this IHostBuilder hostBuilder, Action<HostBuilderContext, ServiceProviderOptions> configure) 86var options = new ServiceProviderOptions(); 325internal static ServiceProviderOptions CreateDefaultServiceProviderOptions(HostBuilderContext context)
Microsoft.Extensions.Hosting.Testing (3)
FakeHostBuilder.cs (1)
52var serviceProviderOptions = new ServiceProviderOptions
FakeHostOptions.cs (2)
46/// <inheritdoc cref="ServiceProviderOptions"/> 49/// <inheritdoc cref="ServiceProviderOptions"/>