7 implementations of CreateScope
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (1)
3680public IServiceScope CreateScope()
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
447public IServiceScope CreateScope()
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
447public IServiceScope CreateScope()
Microsoft.AspNetCore.Http.Tests (1)
DefaultHttpContextTests.cs (1)
536public IServiceScope CreateScope()
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
272public IServiceScope CreateScope()
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
1164public IServiceScope CreateScope()
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceProviderEngineScope.cs (1)
75public IServiceScope CreateScope() => RootProvider.CreateScope();
21 references to CreateScope
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
671var scope = provider.GetRequiredService<IServiceScopeFactory>().CreateScope();
Microsoft.AspNetCore.Http (1)
Features\RequestServicesFeature.cs (1)
38_scope = _scopeFactory.CreateScope();
Microsoft.AspNetCore.Http.Tests (1)
DefaultHttpContextTests.cs (1)
538var scope = new AsyncServiceScope(_serviceProvider.GetService<IServiceScopeFactory>().CreateScope());
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (13)
CustomSchemaTest.cs (2)
34using var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope(); 42using var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope();
DefaultPocoTest.cs (1)
35using (var scoped = provider.GetRequiredService<IServiceScopeFactory>().CreateScope())
EmptySchemaTest.cs (2)
34using var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope(); 42using var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope();
MaxKeyLengthSchemaTest.cs (2)
34using (var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope()) 52using (var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope())
UserOnlyCustomContextTest.cs (1)
79using (var scoped = provider.GetRequiredService<IServiceScopeFactory>().CreateScope())
UserOnlyTest.cs (1)
40using (var scoped = provider.GetRequiredService<IServiceScopeFactory>().CreateScope())
VersionOneSchemaTest.cs (2)
36using var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope(); 44using var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope();
VersionTwoSchemaTest.cs (2)
36var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope(); 44using var scope = _builder.ApplicationServices.GetRequiredService<IServiceScopeFactory>().CreateScope();
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
416using (var scope = scopeFactory.CreateScope())
Microsoft.AspNetCore.SignalR.Core (1)
Internal\DefaultHubDispatcher.cs (1)
772using var scope = _serviceScopeFactory.CreateScope();
Microsoft.Extensions.DependencyInjection.Abstractions (2)
ServiceProviderServiceExtensions.cs (2)
104return provider.GetRequiredService<IServiceScopeFactory>().CreateScope(); 124return new AsyncServiceScope(serviceScopeFactory.CreateScope());
Microsoft.Extensions.Http (1)
DefaultHttpClientFactory.cs (1)
139scope = _scopeFactory.CreateScope();