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