14 references to GetOrCreateWebRootComponentManager
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitHost.cs (1)
882var webRootComponentManager = Renderer.GetOrCreateWebRootComponentManager();
Circuits\CircuitPersistenceManager.cs (1)
194var components = renderer.GetOrCreateWebRootComponentManager().GetRootComponents();
Microsoft.AspNetCore.Components.Server.Tests (12)
Circuits\CircuitHostTest.cs (3)
714Assert.Equal(2, testRenderer.GetOrCreateWebRootComponentManager().GetRootComponents().Count()); 766Assert.Equal(2, testRenderer.GetOrCreateWebRootComponentManager().GetRootComponents().Count()); 782Assert.Equal(2, testRenderer.GetOrCreateWebRootComponentManager().GetRootComponents().Count());
Circuits\RemoteRendererTest.cs (9)
478var webRootComponentManager = renderer.GetOrCreateWebRootComponentManager(); 516var webRootComponentManager = renderer.GetOrCreateWebRootComponentManager(); 536var webRootComponentManager = renderer.GetOrCreateWebRootComponentManager(); 554var webRootComponentManager = renderer.GetOrCreateWebRootComponentManager(); 574var webRootComponentManager = renderer.GetOrCreateWebRootComponentManager(); 593var webRootComponentManager = renderer.GetOrCreateWebRootComponentManager(); 613var ex = Assert.Throws<InvalidOperationException>(() => renderer.GetOrCreateWebRootComponentManager().RemoveRootComponent(1)); 629var webRootComponentManager = renderer.GetOrCreateWebRootComponentManager(); 672var webRootComponentManager = renderer.GetOrCreateWebRootComponentManager();