18 references to BuildServiceProvider
EntityFrameworkCoreSample (1)
Program.cs (1)
31.BuildServiceProvider(validateScopes: true);
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
94return Services.BuildServiceProvider(validateScopes: WebAssemblyHostEnvironmentExtensions.IsDevelopment(hostEnvironment));
Microsoft.AspNetCore.DataProtection.Tests (1)
ServiceCollectionTests.cs (1)
55var services = serviceCollection.BuildServiceProvider(validateScopes: true);
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
411var root = services.BuildServiceProvider(validateScopes: true);
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentProviderTests.cs (1)
71var serviceProvider = serviceCollection.BuildServiceProvider(validateScopes: true);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
DefaultHealthCheckServiceTest.cs (1)
638return (DefaultHealthCheckService)services.BuildServiceProvider(validateScopes: true).GetRequiredService<HealthCheckService>();
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (12)
DependencyInjectionExtensionsTests.cs (12)
67using var provider = services.BuildServiceProvider(validateScopes: true); 89var pool = services.BuildServiceProvider(validateScopes: true).GetService<ObjectPool<TestDependency>>(); 90using var provider = services.BuildServiceProvider(validateScopes: true); 103using var provider = services.BuildServiceProvider(validateScopes: true); 132using var provider = services.BuildServiceProvider(validateScopes: true); 146using var provider = services.BuildServiceProvider(validateScopes: true); 162using var provider = services.BuildServiceProvider(validateScopes: true); 181using var provider = services.BuildServiceProvider(validateScopes: true); 216using var provider = services.BuildServiceProvider(validateScopes: true); 230using var provider = services.BuildServiceProvider(validateScopes: true); 265using var provider = services.BuildServiceProvider(validateScopes: true); 322using var provider = services.BuildServiceProvider(validateScopes: true);