60 references to Component
Microsoft.AspNetCore.Components (1)
RenderTree\RenderTreeDiffBuilder.cs (1)
1001var componentInstance = parentFrame.Component;
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (1)
17GC.KeepAlive(/*MMProperty*/frame.Component);
Microsoft.AspNetCore.Components.Authorization.Tests (5)
AuthorizeRouteViewTest.cs (2)
287.Select(f => f.Component); 316.Select(f => f.Component);
CascadingAuthenticationStateTest.cs (1)
88var receiveAuthStateComponent = (ReceiveAuthStateComponent)receiveAuthStateFrame.Component;
src\Components\Shared\test\AssertFrame.cs (1)
98Assert.IsType<T>(frame.Component);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\AssertFrame.cs (1)
98Assert.IsType<T>(frame.Component);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
TestFiles\ComponentInternalUsageDiagnosticsAnalyzerTest\UsersRendererTypesInMethodBody.cs (1)
17GC.KeepAlive(/*MMProperty*/frame.Component);
Microsoft.AspNetCore.Components.Tests (40)
CascadingParameterTest.cs (2)
902&& frame.Component is T); 904return (T)componentFrame.Component;
RendererTest.cs (24)
83Assert.IsType<MessageComponent>(componentFrame.Component); 145var nestedComponent = (MessageComponent)nestedComponentFrame.Component; 800var nestedComponent = (EventComponent)nestedComponentFrame.Component; 972var nestedComponent = (EventComponent)nestedComponentFrame.Component; 2050var nestedComponentInstance = (MessageComponent)nestedComponentFrame.Component; 2091var childComponentInstance = (FakeComponent)originalComponentFrame.Component; 2246.Single().Component; 2860.Single(f => f.Component is EventComponent); 2862childComponent = (EventComponent)childComponentFrame.Component; 3423edit => (AfterRenderCaptureComponent)batch1.ReferenceFrames[edit.ReferenceFrameIndex].Component) 4221var nestedComponent = Assert.IsType<DisposableComponent>(componentFrame.Component); 4453var capturingComponent = (ParameterViewIllegalCapturingComponent)renderer.GetCurrentRenderTreeFrames(rootComponentId).Array[0].Component; 4484var capturingComponent = (ImplicitConversionComponent)renderer.GetCurrentRenderTreeFrames(rootComponentId).Array[0].Component; 4564Assert.Collection(componentFrames.Select(f => (TestErrorBoundary)f.Component), 4590.Select(f => (TestErrorBoundary)f.Component); 4627.Select(f => (TestErrorBoundary)f.Component).ToArray(); 4665.Select(f => (TestErrorBoundary)f.Component); 4704.Select(f => (TestErrorBoundary)f.Component); 4753.Select(f => (TestErrorBoundary)f.Component); 4822Assert.True(((DisposableComponent)nestedDisposableComponentFrame.Component).Disposed); 4823Assert.True(((AsyncDisposableComponent)nestedAsyncDisposableComponentFrame.Component).Disposed); 4878var nestedComponent = (DisposableComponent)nestedComponentFrame.Component; 5085var resolvedComponent = (MessageComponent)componentFrames.Single().Component; 5110var resolvedComponent = (MessageComponent)componentFrames.Single().Component;
RenderTreeDiffBuilderTest.cs (12)
1597var componentInstance = newTree.GetFrames().AsEnumerable().First().Component as FakeComponent; 1631var originalFakeComponentInstance = oldTree.GetFrames().Array[2].Component; 1632var originalFakeComponent2Instance = oldTree.GetFrames().Array[3].Component; 1643Assert.Same(originalFakeComponentInstance, newFrame1.Component); 1644Assert.Same(originalFakeComponent2Instance, newFrame2.Component); 1717var originalComponentInstance = (FakeComponent)oldTree.GetFrames().Array[0].Component; 1721var newComponentInstance = (FakeComponent)oldTree.GetFrames().Array[0].Component; 1772var originalComponentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].Component; 1777var newComponentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].Component; 1802var componentInstance = (CaptureSetParametersComponent)oldTree.GetFrames().Array[0].Component; 1937Assert.Same(capturedInstance1, frame.Component); 2439.Select(x => (T)x.Component)
src\Components\Shared\test\AssertFrame.cs (1)
98Assert.IsType<T>(frame.Component);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);
Microsoft.AspNetCore.Components.Web.Tests (10)
Forms\EditFormTest.cs (1)
210.Select(f => f.Component)
Forms\InputBaseTest.cs (5)
383var component = (TestInputComponent<string>)componentFrame1.Component; 414var component = renderer.Batches.Single().GetComponentFrames<TestInputComponent<string>>().Single().Component; 451var component = (TestInputComponent<string>)componentFrame1.Component; 486var component = (TestInputComponent<string>)componentFrame1.Component; 514var component = (TestInputComponent<string>)componentFrame1.Component;
Forms\InputRadioTest.cs (1)
108.Select(f => f.Component)
Forms\InputRenderer.cs (1)
23.Select(f => f.Component)
src\Components\Shared\test\AssertFrame.cs (1)
98Assert.IsType<T>(frame.Component);
src\Components\Shared\test\CapturedBatch.cs (1)
20=> ReferenceFrames.Where(f => f.FrameType == RenderTreeFrameType.Component && f.Component is T);