252 references to AddComponentParameter
Microsoft.AspNetCore.Components (6)
DynamicComponent.cs (1)
101
builder.
AddComponentParameter
(1, entry.Key, entry.Value);
LayoutView.cs (1)
72
builder.
AddComponentParameter
(1, LayoutComponentBase.BodyPropertyName, bodyParam);
RouteView.cs (3)
80
builder.
AddComponentParameter
(1, nameof(LayoutView.Layout), pageLayoutType);
81
builder.
AddComponentParameter
(2, nameof(LayoutView.ChildContent), (RenderFragment)RenderPageWithParameters);
91
builder.
AddComponentParameter
(1, kvp.Key, kvp.Value);
Sections\SectionOutlet.cs (1)
103
builder.
AddComponentParameter
(1, SectionOutletContentRenderer.ContentParameterName, fragment);
Microsoft.AspNetCore.Components.Authorization (8)
AuthorizeRouteView.cs (8)
82
builder.
AddComponentParameter
(1, nameof(CascadingAuthenticationState.ChildContent), _renderAuthorizeRouteViewCoreDelegate);
90
builder.
AddComponentParameter
(1, nameof(AuthorizeRouteViewCore.RouteData), RouteData);
91
builder.
AddComponentParameter
(2, nameof(AuthorizeRouteViewCore.Authorized), _renderAuthorizedDelegate);
92
builder.
AddComponentParameter
(3, nameof(AuthorizeRouteViewCore.Authorizing), _renderAuthorizingDelegate);
93
builder.
AddComponentParameter
(4, nameof(AuthorizeRouteViewCore.NotAuthorized), _renderNotAuthorizedDelegate);
94
builder.
AddComponentParameter
(5, nameof(AuthorizeRouteViewCore.Resource), Resource);
107
builder.
AddComponentParameter
(1, nameof(LayoutView.Layout), DefaultLayout);
108
builder.
AddComponentParameter
(2, nameof(LayoutView.ChildContent), content);
Microsoft.AspNetCore.Components.Authorization.Tests (14)
AuthorizeRouteViewTest.cs (3)
416
builder.
AddComponentParameter
(1, nameof(CascadingValue<object>.Value), _authenticationState);
417
builder.
AddComponentParameter
(2, nameof(CascadingValue<object>.ChildContent), (RenderFragment)(builder =>
420
builder.
AddComponentParameter
(1, nameof(AuthorizeRouteView.RouteData), _routeData);
AuthorizeViewTest.cs (10)
508
builder.
AddComponentParameter
(1, nameof(AuthorizeView.ChildContent), childContent);
509
builder.
AddComponentParameter
(2, nameof(AuthorizeView.Authorized), authorized);
510
builder.
AddComponentParameter
(3, nameof(AuthorizeView.NotAuthorized), notAuthorized);
511
builder.
AddComponentParameter
(4, nameof(AuthorizeView.Authorizing), authorizing);
512
builder.
AddComponentParameter
(5, nameof(AuthorizeView.Policy), policy);
513
builder.
AddComponentParameter
(6, nameof(AuthorizeView.Roles), roles);
514
builder.
AddComponentParameter
(7, nameof(AuthorizeView.Resource), resource);
534
builder.
AddComponentParameter
(1, nameof(CascadingValue<Task<AuthenticationState>>.Value), AuthenticationState);
535
builder.
AddComponentParameter
(2, "ChildContent", (RenderFragment)(builder =>
538
builder.
AddComponentParameter
(1, "ChildContent", _childContent);
CascadingAuthenticationStateTest.cs (1)
180
builder.
AddComponentParameter
(1, "ChildContent", new RenderFragment(childBuilder =>
Microsoft.AspNetCore.Components.Endpoints (4)
RazorComponentEndpointHost.cs (3)
46
builder.
AddComponentParameter
(1, nameof(LayoutView.Layout), pageLayoutType);
47
builder.
AddComponentParameter
(2, nameof(LayoutView.ChildContent), (RenderFragment)RenderPageWithParameters);
59
builder.
AddComponentParameter
(1, kvp.Key, kvp.Value);
Rendering\SSRRenderModeBoundary.cs (1)
149
builder.
AddComponentParameter
(1, name, value);
Microsoft.AspNetCore.Components.Tests (181)
CascadingParameterTest.cs (40)
21
builder.
AddComponentParameter
(1, "Value", "Hello");
22
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(childBuilder =>
25
childBuilder.
AddComponentParameter
(1, "RegularParameter", "Goodbye");
59
builder.
AddComponentParameter
(1, "Value", "Hello");
60
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(childBuilder =>
63
childBuilder.
AddComponentParameter
(1, "RegularParameter", regularParameterValue);
107
builder.
AddComponentParameter
(1, "Value", providedValue);
108
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(childBuilder =>
111
childBuilder.
AddComponentParameter
(1, "RegularParameter", "Goodbye");
152
builder.
AddComponentParameter
(1, "Value", "Unchanging value");
153
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(childBuilder =>
156
childBuilder.
AddComponentParameter
(1, "RegularParameter", "Goodbye");
191
builder.
AddComponentParameter
(1, "Value", 123);
192
builder.
AddComponentParameter
(2, "IsFixed", true);
193
builder.
AddComponentParameter
(3, "ChildContent", new RenderFragment(builder2 =>
197
builder2.
AddComponentParameter
(1, "Value", providedValue);
198
builder2.
AddComponentParameter
(2, "ChildContent", new RenderFragment(builder3 =>
203
builder3.
AddComponentParameter
(1, "RegularParameter", "Goodbye");
257
builder.
AddComponentParameter
(1, "Value", providedValue);
258
builder.
AddComponentParameter
(2, "IsFixed", true);
259
builder.
AddComponentParameter
(3, "ChildContent", new RenderFragment(childBuilder =>
264
childBuilder.
AddComponentParameter
(1, "RegularParameter", "Goodbye");
316
builder.
AddComponentParameter
(1, "IsFixed", isFixed);
317
builder.
AddComponentParameter
(2, "Value", new object());
340
builder.
AddComponentParameter
(1, "IsFixed", true);
342
builder.
AddComponentParameter
(2, "Value", new object());
363
builder.
AddComponentParameter
(1, "Value", providedValue);
364
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(childBuilder =>
396
builder.
AddComponentParameter
(1, "Value", "Hello 1");
397
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(builder =>
400
builder.
AddComponentParameter
(1, "Value", "Hello 2");
401
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(builder =>
526
builder.
AddComponentParameter
(1, "Value", new MyParamType("Hello from component hierarchy"));
527
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(childBuilder =>
530
childBuilder.
AddComponentParameter
(1, "RegularParameter", "Goodbye");
723
builder.
AddComponentParameter
(1, "Value", "Hello");
724
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(builder =>
727
builder.
AddComponentParameter
(1, "Text", singleDeliveryTextValue);
728
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(builder =>
731
builder.
AddComponentParameter
(1, "RegularParameter", regularParameterValue);
ParameterViewTest.Assignment.cs (1)
757
builder.
AddComponentParameter
(1, name, value);
RendererTest.cs (79)
66
builder.
AddComponentParameter
(2, nameof(MessageComponent.Message), "Nested component output");
1021
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickAction), (Action)parentComponent.SomeMethod);
1062
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1104
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)parentComponent.SomeMethod));
1142
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1183
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Func<Task>)(() =>
1223
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)parentComponent.SomeMethod));
1261
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action)(() =>
1302
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Func<Task>)(() =>
1341
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1374
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1408
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create(parentComponent, (Action<DerivedEventArgs>)((e) =>
1442
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1475
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1509
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create(parentComponent, (Action<DerivedEventArgs>)((e) =>
1544
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickAction), (Action)(() =>
1577
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, (Action)(() =>
1611
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, (Action<DerivedEventArgs>)((e) =>
1648
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
1684
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, async () =>
1721
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, async (e) =>
1759
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
1798
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, async () =>
1838
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, async (e) =>
1879
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickAsyncAction), (Func<Task>)(async () =>
1917
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallback), EventCallback.Factory.Create(parentComponent, async () =>
1956
builder.
AddComponentParameter
(1, nameof(EventComponent.OnClickEventCallbackOfT), EventCallback.Factory.Create<DerivedEventArgs>(parentComponent, async (e) =>
2079
builder.
AddComponentParameter
(2, nameof(FakeComponent.IntProperty), firstRender ? 123 : 256);
2080
builder.
AddComponentParameter
(3, nameof(FakeComponent.ObjectProperty), objectThatWillNotChange);
2081
builder.
AddComponentParameter
(4, nameof(FakeComponent.StringProperty), firstRender ? "String that will change" : "String that did change");
2117
builder.
AddComponentParameter
(2, nameof(MessageComponent.Message), firstRender ? "first" : "second");
2153
builder.
AddComponentParameter
(1, "class", firstRender ? "first" : "second");
2154
builder.
AddComponentParameter
(2, "id", "some_text");
2155
builder.
AddComponentParameter
(3, nameof(MyStrongComponent.Text), "hi there.");
2193
builder.
AddComponentParameter
(1, "class", "cool-beans");
2194
builder.
AddComponentParameter
(2, "id", "some_text");
2195
builder.
AddComponentParameter
(3, nameof(MyStrongComponent.Text), "hi there.");
2226
builder.
AddComponentParameter
(101, nameof(ConditionalParentComponent<FakeComponent>.IncludeChild), true);
2280
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1));
2284
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception2));
2320
builder.
AddComponentParameter
(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => throw exception1));
2354
builder.
AddComponentParameter
(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => default));
2394
builder.
AddComponentParameter
(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; }));
2439
builder.
AddComponentParameter
(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; throw exception1; }));
2478
builder.
AddComponentParameter
(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => throw new TaskCanceledException()));
2513
builder.
AddComponentParameter
(
2563
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count1++; }));
2567
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count2++; throw exception1; }));
2571
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count3++; }));
2576
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count4++; throw exception2; }));
2580
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => { count5++; }));
2848
builder.
AddComponentParameter
(2, nameof(EventComponent.OnTest), new Action<EventArgs>(args =>
2970
builder.
AddComponentParameter
(1, nameof(ReRendersParentComponent.Parent), parent);
3036
builder.
AddComponentParameter
(2, "onclick", (Action<object>)((object obj) =>
3398
builder.
AddComponentParameter
(1, "some param", showComponent3);
3714
builder.
AddComponentParameter
(1, nameof(ComponentThatAwaitsTask.TaskToAwait), taskToAwait);
4242
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1));
4246
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception2));
4274
builder.
AddComponentParameter
(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(() => { disposed = true; throw exception1; }));
4302
builder.
AddComponentParameter
(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => { await tcs.Task; disposed = true; throw exception1; }));
4443
builder.
AddComponentParameter
(1, nameof(ParameterViewIllegalCapturingComponent.SomeParam), 0);
4477
builder.
AddComponentParameter
(1, nameof(ImplicitConversionComponent.SomeParam), parameterValue);
4552
builder.
AddComponentParameter
(1, nameof(ErrorThrowingComponent.ThrowDuringRender), exception);
4583
builder.
AddComponentParameter
(1, nameof(ErrorThrowingComponent.ThrowDuringParameterSettingSync), exception);
4620
builder.
AddComponentParameter
(1, nameof(ErrorThrowingComponent.ThrowDuringParameterSettingAsync), exceptionTcs?.Task);
4659
builder.
AddComponentParameter
(1, nameof(ErrorThrowingComponent.ThrowDuringEventSync), exception);
4698
builder.
AddComponentParameter
(1, nameof(ErrorThrowingComponent.ThrowDuringEventAsync), exceptionTcs.Task);
4745
builder.
AddComponentParameter
(1, nameof(ErrorThrowingComponent.ThrowDuringEventAsync), exceptionTcs.Task);
4907
builder.
AddComponentParameter
(1, nameof(DisposableComponent.DisposeAction), (Action)(() => throw exception1));
4911
builder.
AddComponentParameter
(1, nameof(AsyncDisposableComponent.AsyncDisposeAction), (Func<ValueTask>)(async () => await exception2Tcs.Task));
5074
builder.
AddComponentParameter
(1, nameof(MessageComponent.Message), "Some message");
5098
builder.
AddComponentParameter
(1, nameof(MessageComponent.Message), "Some message");
5387
builder.
AddComponentParameter
(2, kvp.Key, kvp.Value);
5688
builder.
AddComponentParameter
(3, eventActionsName, component.EventActions);
5689
builder.
AddComponentParameter
(4, whatToRenderName, component.WhatToRender);
5690
builder.
AddComponentParameter
(5, testIdName, child);
5691
builder.
AddComponentParameter
(6, logName, component.Log);
5988
builder.
AddComponentParameter
(1, nameof(TestErrorBoundary.ChildContent), (RenderFragment)(builder =>
5992
builder.
AddComponentParameter
(1, nameof(TestErrorBoundary.ChildContent), innerContent);
Rendering\RenderTreeBuilderTest.cs (19)
450
builder.
AddComponentParameter
(0, "name", "value");
493
builder.
AddComponentParameter
(2, "name", "value");
536
builder.
AddComponentParameter
(1, "name", "value");
581
builder.
AddComponentParameter
(2, "name", "value");
595
builder.
AddComponentParameter
(2, "name", "value");
608
builder.
AddComponentParameter
(12, "child1attribute1", "A"); // 2: child1attribute1="A"
609
builder.
AddComponentParameter
(13, "child1attribute2", "B"); // 3: child1attribute2="B">
612
builder.
AddComponentParameter
(15, "child2attribute", "C"); // 5: child2attribute="C">
807
builder.
AddComponentParameter
(1, "attribute2", 123); // 1: attribute2=intExpression123>
969
builder.
AddComponentParameter
(1, "attr", value);
1044
builder.
AddComponentParameter
(1, "attr", value);
1162
builder.
AddComponentParameter
(1, "attr", value);
1259
builder.
AddComponentParameter
(1, "attr", callback);
1356
builder.
AddComponentParameter
(1, "attr", callback);
1723
builder.
AddComponentParameter
(1, "param before", 123);
1725
builder.
AddComponentParameter
(2, "param after", 456);
2112
builder.
AddComponentParameter
(1, "param", 123);
2151
builder.
AddComponentParameter
(1, "param", 123);
2177
builder.
AddComponentParameter
(2, "key", "value");
RenderTreeDiffBuilderTest.cs (42)
213
oldTree.
AddComponentParameter
(1, "ParamName", "Param old value");
221
newTree.
AddComponentParameter
(1, "ParamName", "New component param value");
226
newTree.
AddComponentParameter
(1, "ParamName", "Param new value");
254
oldTree.
AddComponentParameter
(1, nameof(FakeComponent.StringProperty), "Anything");
259
oldTree.
AddComponentParameter
(1, nameof(FakeComponent.StringProperty), "Retained param value");
269
newTree.
AddComponentParameter
(1, nameof(FakeComponent.StringProperty), "Retained param value");
292
oldTree.
AddComponentParameter
(1, nameof(FakeComponent.StringProperty), "Will delete");
296
oldTree.
AddComponentParameter
(3, nameof(FakeComponent.StringProperty), "Retained param value");
305
newTree.
AddComponentParameter
(3, nameof(FakeComponent.StringProperty), "Retained param value");
1590
newTree.
AddComponentParameter
(1, nameof(FakeComponent.IntProperty), 123);
1591
newTree.
AddComponentParameter
(2, nameof(FakeComponent.StringProperty), "some string");
1592
newTree.
AddComponentParameter
(3, nameof(FakeComponent.ObjectProperty), testObject);
1706
oldTree.
AddComponentParameter
(13, nameof(FakeComponent.StringProperty), "String will change");
1707
oldTree.
AddComponentParameter
(14, nameof(FakeComponent.ObjectProperty), objectWillNotChange);
1710
newTree.
AddComponentParameter
(13, nameof(FakeComponent.StringProperty), "String did change");
1711
newTree.
AddComponentParameter
(14, nameof(FakeComponent.ObjectProperty), objectWillNotChange);
1745
tree.
AddComponentParameter
(1, "MyString", "Some fixed string");
1746
tree.
AddComponentParameter
(1, "MyByte", (byte)123);
1747
tree.
AddComponentParameter
(1, "MyInt", int.MaxValue);
1748
tree.
AddComponentParameter
(1, "MyLong", long.MaxValue);
1749
tree.
AddComponentParameter
(1, "MyBool", true);
1750
tree.
AddComponentParameter
(1, "MyFloat", float.MaxValue);
1751
tree.
AddComponentParameter
(1, "MyDouble", double.MaxValue);
1752
tree.
AddComponentParameter
(1, "MyDecimal", decimal.MinusOne);
1753
tree.
AddComponentParameter
(1, "MyDate", dateTimeWillNotChange);
1754
tree.
AddComponentParameter
(1, "MyGuid", Guid.Empty);
1755
tree.
AddComponentParameter
(1, "MySByte", (sbyte)123);
1756
tree.
AddComponentParameter
(1, "MyShort", (short)123);
1757
tree.
AddComponentParameter
(1, "MyUShort", (ushort)123);
1758
tree.
AddComponentParameter
(1, "MyUInt", uint.MaxValue);
1759
tree.
AddComponentParameter
(1, "MyULong", ulong.MaxValue);
1760
tree.
AddComponentParameter
(1, "MyChar", 'c');
1761
tree.
AddComponentParameter
(1, "MyEnum", StringComparison.OrdinalIgnoreCase);
1762
tree.
AddComponentParameter
(1, "MyEventCallback", EventCallback.Empty);
1763
tree.
AddComponentParameter
(1, "MyEventCallbackOfT", EventCallback<int>.Empty);
1764
tree.
AddComponentParameter
(1, "MyDateOnly", dateOnlyWillNotChange);
1765
tree.
AddComponentParameter
(1, "MyTimeOnly", timeOnlyWillNotChange);
1795
tree.
AddComponentParameter
(1, "MyFragment", fragmentWillNotChange);
2026
oldTree.
AddComponentParameter
(1, nameof(FakeComponent.StringProperty), "First param");
2033
oldTree.
AddComponentParameter
(1, nameof(FakeComponent.StringProperty), "Second param");
2042
newTree.
AddComponentParameter
(1, nameof(FakeComponent.StringProperty), "Second param");
2049
newTree.
AddComponentParameter
(1, nameof(FakeComponent.StringProperty), "First param modified");
Microsoft.AspNetCore.Components.Web (15)
Forms\EditForm.cs (4)
168
builder.
AddComponentParameter
(7, "IsFixed", true);
169
builder.
AddComponentParameter
(8, "Value", _editContext);
170
builder.
AddComponentParameter
(9, "ChildContent", ChildContent?.Invoke(_editContext));
183
builder.
AddComponentParameter
(2, nameof(FormMappingValidator.CurrentEditContext), EditContext);
Forms\InputRadioGroup.cs (2)
76
builder.
AddComponentParameter
(2, "Value", _context);
77
builder.
AddComponentParameter
(3, "ChildContent", ChildContent);
Head\HeadContent.cs (2)
24
builder.
AddComponentParameter
(1, nameof(SectionContent.SectionId), HeadOutlet.HeadSectionId);
25
builder.
AddComponentParameter
(2, nameof(SectionContent.ChildContent), ChildContent);
Head\HeadOutlet.cs (5)
40
builder.
AddComponentParameter
(1, nameof(SectionOutlet.SectionId), TitleSectionId);
47
builder.
AddComponentParameter
(3, nameof(SectionContent.SectionId), TitleSectionId);
48
builder.
AddComponentParameter
(4, nameof(SectionContent.IsDefaultContent), true);
49
builder.
AddComponentParameter
(5, nameof(SectionContent.ChildContent), (RenderFragment)BuildDefaultTitleRenderTree);
55
builder.
AddComponentParameter
(7, nameof(SectionOutlet.SectionId), HeadSectionId);
Head\PageTitle.cs (2)
24
builder.
AddComponentParameter
(1, nameof(SectionContent.SectionId), HeadOutlet.TitleSectionId);
25
builder.
AddComponentParameter
(2, nameof(SectionContent.ChildContent), (RenderFragment)BuildTitleRenderTree);
Microsoft.AspNetCore.Components.Web.Tests (24)
Forms\EditFormTest.cs (6)
245
builder.
AddComponentParameter
(1, nameof(FormMappingScope.Name), MappingContextName);
246
builder.
AddComponentParameter
(3, nameof(FormMappingScope.ChildContent), (RenderFragment<FormMappingContext>)(_ => RenderForm));
261
builder.
AddComponentParameter
(2, "Model", Model);
262
builder.
AddComponentParameter
(3, "EditContext", EditContext);
265
builder.
AddComponentParameter
(4, "OnValidSubmit", new EventCallback<EditContext>(null, SubmitHandler));
267
builder.
AddComponentParameter
(5, "FormName", FormName);
Forms\InputRadioTest.cs (8)
81
builder.
AddComponentParameter
(1, "Name", name);
82
builder.
AddComponentParameter
(2, "Value", selectedValue);
90
builder.
AddComponentParameter
(1, "Name", name);
91
builder.
AddComponentParameter
(2, "ValueExpression", valueExpression);
92
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment((childBuilder) =>
97
childBuilder.
AddComponentParameter
(1, "Value", value);
145
builder.
AddComponentParameter
(1, "Value", EditContext);
146
builder.
AddComponentParameter
(2, "ChildContent", InnerContent);
Forms\TestInputHostComponent.cs (5)
25
builder.
AddComponentParameter
(1, "Value", EditContext);
26
builder.
AddComponentParameter
(2, "ChildContent", new RenderFragment(childBuilder =>
29
childBuilder.
AddComponentParameter
(0, "Value", Value);
30
childBuilder.
AddComponentParameter
(1, "ValueChanged",
32
childBuilder.
AddComponentParameter
(2, "ValueExpression", ValueExpression);
HtmlRendering\HtmlRendererTest.cs (2)
1089
rtb.
AddComponentParameter
(1, nameof(FormMappingScope.Name), "myscope");
1090
rtb.
AddComponentParameter
(1, nameof(FormMappingScope.ChildContent), (RenderFragment<FormMappingContext>)(ctx => rtb =>
Virtualization\VirtualizeTest.cs (3)
116
builder.
AddComponentParameter
(1, "ItemSize", itemSize);
117
builder.
AddComponentParameter
(2, "ItemsProvider", itemsProvider);
118
builder.
AddComponentParameter
(3, "Items", items);