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