38 references to CreateAsyncScope
Microsoft.AspNetCore.Components.Server.Tests (11)
Circuits\CircuitHostTest.cs (6)
529serviceScope: new ServiceCollection().BuildServiceProvider().CreateAsyncScope()); 551serviceScope: new ServiceCollection().BuildServiceProvider().CreateAsyncScope()); 577serviceScope: new ServiceCollection().BuildServiceProvider().CreateAsyncScope()); 604serviceScope: new ServiceCollection().BuildServiceProvider().CreateAsyncScope()); 642serviceScope: new ServiceCollection().BuildServiceProvider().CreateAsyncScope()); 679serviceScope: new ServiceCollection().BuildServiceProvider().CreateAsyncScope());
Circuits\CircuitPersistenceManagerTest.cs (1)
424var scope = serviceProvider.CreateAsyncScope();
Circuits\CircuitRegistryTest.cs (3)
297var circuitHost = TestCircuitHost.Create(circuitIdFactory.CreateCircuitId(), serviceProvider.CreateAsyncScope()); 349var circuitHost = TestCircuitHost.Create(circuitIdFactory.CreateCircuitId(), serviceProvider.CreateAsyncScope()); 505.CreateAsyncScope();
Circuits\TestCircuitHost.cs (1)
47serviceScope ??= serviceProvider.CreateAsyncScope();
Microsoft.AspNetCore.Components.Tests (24)
PersistentState\PersistentServicesRegistryTest.cs (24)
24var scope = serviceProvider.CreateAsyncScope().ServiceProvider; 41var secondScope = serviceProvider.CreateAsyncScope().ServiceProvider; 69var scope = serviceProviderOne.CreateAsyncScope().ServiceProvider; 83var scopeTwo = serviceProviderTwo.CreateAsyncScope().ServiceProvider; 111serviceProvider.CreateAsyncScope().ServiceProvider); 119serviceProvider.CreateAsyncScope().ServiceProvider); 138var scope = serviceProvider.CreateAsyncScope().ServiceProvider; 168var scope = serviceProviderOne.CreateAsyncScope().ServiceProvider; 183var scopeTwo = serviceProviderTwo.CreateAsyncScope().ServiceProvider; 208var scope = serviceProviderOne.CreateAsyncScope().ServiceProvider; 222var scopeTwo = serviceProviderTwo.CreateAsyncScope().ServiceProvider; 246var scope = serviceProviderOne.CreateAsyncScope().ServiceProvider; 256var scopeTwo = serviceProviderTwo.CreateAsyncScope().ServiceProvider; 322var scope = serviceProvider.CreateAsyncScope().ServiceProvider; 338var secondScope = serviceProvider.CreateAsyncScope().ServiceProvider; 371var scope = serviceProvider.CreateAsyncScope().ServiceProvider; 384var secondScope = serviceProvider.CreateAsyncScope().ServiceProvider; 412var scope = serviceProvider.CreateAsyncScope().ServiceProvider; 426var initialValueScope = serviceProvider.CreateAsyncScope().ServiceProvider; 448var scope = serviceProvider.CreateAsyncScope().ServiceProvider; 462var lastSnapshotScope = serviceProvider.CreateAsyncScope().ServiceProvider; 484var scope = serviceProvider.CreateAsyncScope().ServiceProvider; 498var updatedScope = serviceProvider.CreateAsyncScope().ServiceProvider; 511var targetScope = serviceProvider.CreateAsyncScope().ServiceProvider;
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
224var serviceScope = _provider.CreateAsyncScope();
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
764connection.ServiceScope = context.RequestServices.CreateAsyncScope();
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
TestingInfrastructureInheritanceTests.cs (1)
88using var scope = factory.Services.CreateAsyncScope();