21 references to AddComponentReferenceCapture
Microsoft.AspNetCore.Components (1)
DynamicComponent.cs (1)
105builder.AddComponentReferenceCapture(2, component => Instance = component);
Microsoft.AspNetCore.Components.QuickGrid.Tests (1)
GridRaceConditionTest.cs (1)
124builder.AddComponentReferenceCapture(3, component => _grid = (TGrid)component);
Microsoft.AspNetCore.Components.Tests (17)
CascadingParameterTest.cs (1)
971builder.AddComponentReferenceCapture(2, component => NestedSubscriber = component as SimpleSubscriberComponent);
ComponentBaseTest.cs (4)
393builder.AddComponentReferenceCapture(2, inst => capturedBoundary = (TestErrorBoundary)inst); 425builder.AddComponentReferenceCapture(2, inst => capturedBoundary = (TestErrorBoundary)inst); 453builder.AddComponentReferenceCapture(2, inst => testComponentErrorBuildRenderTree = (TestComponentErrorBuildRenderTree)inst); 481builder.AddComponentReferenceCapture(2, inst => testComponentErrorBuildRenderTree = (TestComponentErrorBuildRenderTree)inst);
Rendering\RenderTreeBuilderTest.cs (8)
565builder.AddComponentReferenceCapture(1, _ => { }); 580builder.AddComponentReferenceCapture(1, _ => { }); 808builder.AddComponentReferenceCapture(2, myAction); // 2: # capture: myAction 829builder.AddComponentReferenceCapture(0, _ => { }); 843builder.AddComponentReferenceCapture(1, _ => { }); 857builder.AddComponentReferenceCapture(1, _ => { }); 876builder.AddComponentReferenceCapture(0, referenceCaptureAction1); 877builder.AddComponentReferenceCapture(0, referenceCaptureAction2);
RenderTreeDiffBuilderTest.cs (4)
1912newTree.AddComponentReferenceCapture(1, assigner1); 1913newTree.AddComponentReferenceCapture(2, assigner2); 1951oldTree.AddComponentReferenceCapture(1, assigner); 1954newTree.AddComponentReferenceCapture(1, assigner);
Microsoft.AspNetCore.Components.Web.Tests (2)
HtmlRendering\HtmlRendererTest.cs (1)
626rtb.AddComponentReferenceCapture(5, cr => { });
Virtualization\VirtualizeTest.cs (1)
122builder.AddComponentReferenceCapture(4, component => captureRenderedVirtualize(component as Virtualize<TItem>));