45 references to CreateScope
Aspire.Components.Common.Tests (2)
ConformanceTests.cs (2)
178using (IServiceScope scope1 = host.Services.CreateScope()) 183using (IServiceScope scope2 = host.Services.CreateScope())
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (2)
EntityFrameworkCoreXmlRepository.cs (2)
48using (var scope = _services.CreateScope()) 68using (var scope = _services.CreateScope())
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Latency\RequestLatencyTelemetryExtensionsTests.cs (2)
40using var scope1 = serviceProvider.CreateScope(); 41using var scope2 = serviceProvider.CreateScope();
Microsoft.AspNetCore.Hosting (1)
Internal\ConfigureBuilder.cs (1)
26using (var scope = builder.ApplicationServices.CreateScope())
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
1179using var requestScoped = services.CreateScope();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (7)
UserStoreEncryptPersonalDataTest.cs (1)
194using (var scope = applicationServiceProvider.CreateScope())
UserStoreGuidKeyTest.cs (2)
64using (var csope = sp.CreateScope()) 81using (var csope = sp.CreateScope())
UserStoreIntKeyTest.cs (2)
42using (var csope = sp.CreateScope()) 59using (var csope = sp.CreateScope())
UserStoreStringKeyTest.cs (2)
43using (var csope = sp.CreateScope()) 60using (var csope = sp.CreateScope())
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\ServerFactory.cs (1)
75using (var scope = services.CreateScope())
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
TestingInfrastructureInheritanceTests.cs (1)
101using var scope = factory.Services.CreateScope();
Microsoft.AspNetCore.OpenApi.Microbenchmarks (7)
GenerationBenchmarks.cs (1)
39_serviceProvider = _builder.ServiceProvider.CreateScope().ServiceProvider;
TransformersBenchmark.cs (6)
38_serviceProvider = _builder.ServiceProvider.CreateScope().ServiceProvider; 54_serviceProvider = _builder.ServiceProvider.CreateScope().ServiceProvider; 66_serviceProvider = _builder.ServiceProvider.CreateScope().ServiceProvider; 82_serviceProvider = _builder.ServiceProvider.CreateScope().ServiceProvider; 94_serviceProvider = _builder.ServiceProvider.CreateScope().ServiceProvider; 117_serviceProvider = _builder.ServiceProvider.CreateScope().ServiceProvider;
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
274var scope = _serviceProvider.CreateScope();
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceProviderServiceExtensions.cs (1)
114return new AsyncServiceScope(provider.CreateScope());
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (5)
DependencyInjectionExtensionsTests.cs (5)
238using (var scope = provider.CreateScope()) 272var scope1 = provider.CreateScope(); 276var scope2 = provider.CreateScope(); 329var scope1 = provider.CreateScope(); 333var scope2 = provider.CreateScope();
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Latency\NoopLatencyContextTests.cs (2)
38var scope1 = serviceProvider.CreateScope(); 39var scope2 = serviceProvider.CreateScope();
Microsoft.Extensions.Telemetry.Tests (10)
Latency\Internal\LatencyContextTests.cs (8)
80.CreateScope(); 107.CreateScope(); 133.CreateScope(); 161.CreateScope(); 191.CreateScope(); 217.CreateScope(); 242.CreateScope(); 268.CreateScope();
Latency\LatencyContextExtensionTests.cs (2)
47var scope1 = serviceProvider.CreateScope(); 48var scope2 = serviceProvider.CreateScope();
SqlServerEndToEnd.DbSetup (1)
Program.cs (1)
11using var scope = app.Services.CreateScope();
WaitForSandbox.DbSetup (1)
Program.cs (1)
9using var scope = app.Services.CreateScope();