751 references to AddContent
Aspire.Dashboard (265)
Components_Controls_ResourceDetails_razor.g.cs (7)
2196__builder5.AddContent(213, string.Join(", ", context.Types)
2261__builder6.AddContent(224, ControlStringsLoc[nameof(ControlsStrings.ViewAction)]
2632__builder5.AddContent(264, string.Join(", ", context.Types)
2697__builder6.AddContent(275, ControlStringsLoc[nameof(ControlsStrings.ViewAction)]
3548__builder2.AddContent(372, vm.Text
3647__builder2.AddContent(384, vm.Url
3786__builder2.AddContent(399, vm.DisplayName
Components_Dialogs_GenAIVisualizerDialog_razor.g.cs (40)
282__builder3.AddContent(15, Content.Title
383__builder3.AddContent(25, Loc[nameof(Dialogs.GenAIPreviousButtonText)]
465__builder3.AddContent(33, Loc[nameof(Dialogs.GenAINextButtonText)]
1108__builder3.AddContent(109, audioData.FileName
1173__builder3.AddContent(122, videoData.FileName
1213__builder3.AddContent(127, otherData.FileName
1315__builder3.AddContent(133, itemPart.TextVisualizerViewModel.FormattedText
1866__builder4.AddContent(197, ControlsStringsLoc[nameof(ControlsStrings.GridValueCopyToClipboard)]
1898__builder3.AddContent(209, Content.Span.Name
1911__builder3.AddContent(214, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, Content.Span.StartTime, MillisecondsDisplay.Truncated)
1956__builder3.AddContent(220, Loc[nameof(Dialogs.GenAIDurationLabel)]
1962__builder3.AddContent(221, " ");
1967__builder3.AddContent(224, DurationFormatter.FormatDuration(Content.Span.Duration)
1989__builder3.AddContent(229, Loc[nameof(Dialogs.GenAITokensLabel)]
1995__builder3.AddContent(230, " ");
2000__builder3.AddContent(233, tokenText
2240__builder5.AddContent(260, Loc[nameof(Dialogs.GenAIToolsTabText)]
2365__builder5.AddContent(275, Loc[nameof(Dialogs.GenAIEvaluationsTabText)]
2479__builder3.AddContent(290, Loc[nameof(Dialogs.GenAIDisplayErrorMessageText)]
2492__builder3.AddContent(295, Content.DisplayErrorMessage
2813__builder6.AddContent(326, toolVM.ToolDefinition.Type
2827__builder5.AddContent(330, toolVM.ToolDefinition.Name
2855__builder5.AddContent(333, FormatHelpers.TruncateText(toolVM.ToolDefinition.Description, maxLength: 100)
2903__builder5.AddContent(345, Loc[nameof(Dialogs.GenAIToolParameterName)]
2916__builder5.AddContent(350, Loc[nameof(Dialogs.GenAIToolParameterType)]
2929__builder5.AddContent(355, Loc[nameof(Dialogs.GenAIToolParameterDescription)]
2967__builder5.AddContent(366, prop.Key
3009__builder5.AddContent(374, prop.Value.Type
3023__builder5.AddContent(379, prop.Value.Description
3064__builder5.AddContent(384, Loc[nameof(Dialogs.GenAIToolRequiredParameter)]
3095__builder5.AddContent(388, Loc[nameof(Dialogs.GenAIToolNoParameters)]
3138__builder3.AddContent(391, Loc[nameof(Dialogs.GenAINoTools)]
3208__builder3.AddContent(401, evaluation.Name
3246__builder3.AddContent(407, evaluation.ScoreValue is { } value ? FormatHelpers.FormatNumberWithOptionalDecimalPlaces(value, maxDecimalPlaces: 3) : Loc[nameof(Dialogs.GenAINAText)]
3284__builder3.AddContent(413, evaluation.ScoreLabel is { Length: > 0 } label ? label : Loc[nameof(Dialogs.GenAINAText)]
3312__builder3.AddContent(416, explanation
3413__builder2.AddContent(427, title
3466__builder2.AddContent(434, GetItemTitle(item)
3622__builder2.AddContent(450, Loc[nameof(Dialogs.GenAINoMessageContent)]
3653__builder2.AddContent(453, Loc[nameof(Dialogs.GenAINoMessages)]
Components_Dialogs_McpServerDialog_razor.g.cs (16)
252__builder.AddContent(5, Loc[nameof(Dialogs.McpServerDialogIntroduction)]
265__builder.AddContent(11, Loc[nameof(Dialogs.McpServerDialogLearnMoreLink)]
397__builder3.AddContent(30, Loc[nameof(Dialogs.McpServerDialogQuicklyAddVSCode)]
437__builder3.AddContent(46, Loc[nameof(Dialogs.McpServerDialogInstallButtonAriaLabelVSCode)]
480__builder3.AddContent(63, Loc[nameof(Dialogs.McpServerDialogInstallButtonAriaLabelVSCodeInsiders)]
498__builder3.AddContent(70, Loc[nameof(Dialogs.McpServerDialogVSCodeApiKeyInstructions)]
714__builder4.AddContent(105, Loc[nameof(Dialogs.McpServerDialogCopyButton)]
777__builder3.AddContent(124, Loc[nameof(Dialogs.McpServerDialogVSCodeWarningTitle)]
787__builder3.AddContent(126, Loc[nameof(Dialogs.McpServerDialogVSCodeWarningMessage)]
809__builder3.AddContent(134, Loc[nameof(Dialogs.McpServerDialogVSCodeWarningMoreInfo)]
978__builder3.AddContent(167, Loc[nameof(Dialogs.McpServerDialogQuicklyAddVisualStudio)]
1018__builder3.AddContent(183, Loc[nameof(Dialogs.McpServerDialogInstallButtonAriaLabelVisualStudio)]
1036__builder3.AddContent(190, Loc[nameof(Dialogs.McpServerDialogVisualStudioApiKeyInstructions)]
1252__builder4.AddContent(225, Loc[nameof(Dialogs.McpServerDialogCopyButton)]
1416__builder3.AddContent(259, Loc[nameof(Dialogs.McpServerDialogOtherDescription)]
1428__builder3.AddContent(263, Loc[nameof(Dialogs.McpServerDialogOtherInstructions)]
Components_Dialogs_SettingsDialog_razor.g.cs (11)
331__builder5.AddContent(19, Loc[nameof(Dialogs.SettingsDialogSystemTheme)]
351__builder5.AddContent(24, Loc[nameof(Dialogs.SettingsDialogLightTheme)]
371__builder5.AddContent(29, Loc[nameof(Dialogs.SettingsDialogDarkTheme)]
548__builder3.AddContent(47, Loc[nameof(Dialogs.SettingsDialogLanguagePageReloads)]
562__builder3.AddContent(52, Loc[nameof(Dialogs.SettingsDialogDashboardLogsAndTelemetry)]
635__builder4.AddContent(61, Loc[nameof(Dialogs.SettingsRemoveAllButtonText)]
668__builder3.AddContent(65, Loc[nameof(Dialogs.SettingsDialogTelemetryEnabledInfo)]
674__builder3.AddContent(66, " ");
689__builder3.AddContent(71, Loc[nameof(Dialogs.SettingsDialogTelemetryInfoLinkText)]
711__builder3.AddContent(75, string.Format(Loc[nameof(Dialogs.SettingsDialogVersion)], VersionHelpers.DashboardDisplayVersion)
722__builder3.AddContent(78, string.Format(Loc[nameof(Dialogs.SettingsDialogDotNetRuntimeVersion)], System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription)
Components_Pages_StructuredLogs_razor.g.cs (10)
328__builder2.AddContent(17, Loc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsHeader)]
740__builder2.AddContent(61, FilterLoc[nameof(StructuredFiltering.NoFilters)]
983__builder3.AddContent(87, FilterLoc[nameof(StructuredFiltering.AddFilter)]
1069__builder3.AddContent(100, eventName
1081__builder3.AddContent(105, context!.LogEntry.Scope.Name
1461__builder6.AddContent(145, GetResourceName(context.ResourceView)
1561__builder6.AddContent(162, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, context.TimeStamp, MillisecondsDisplay.Truncated)
1716__builder6.AddContent(184, OtlpHelpers.ToShortenedId(context.TraceId)
1852__builder5.AddContent(202, " ");
1855__builder5.AddContent(203, Loc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsNoLogsFound)]
Components_Pages_TraceDetail_razor.g.cs (36)
358__builder2.AddContent(20, GetPageTitle()
371__builder2.AddContent(25, OtlpHelpers.ToShortenedId(trace.TraceId)
512__builder3.AddContent(48, AIAssistantLoc[nameof(AIAssistant.ExplainTraceButtonText)]
1111__builder3.AddContent(108, title
1123__builder3.AddContent(113, subtitle
2136__builder6.AddContent(227, $"0{DurationFormatter.GetUnit(trace.Duration / 4)}"
2150__builder6.AddContent(233, DurationFormatter.FormatDuration(trace.Duration / 4)
2164__builder6.AddContent(239, DurationFormatter.FormatDuration(trace.Duration / 4 * 2)
2195__builder6.AddContent(245, DurationFormatter.FormatDuration(trace.Duration / 4 * 3)
2216__builder6.AddContent(250, DurationFormatter.FormatDuration(trace.Duration)
2431__builder7.AddContent(283, eventName
2438__builder7.AddContent(284, " ");
2444__builder7.AddContent(288, item.LogEntry.Scope.Name
2464__builder7.AddContent(299, StructuredLogsLoc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsLevelColumnHeader)]
2492__builder7.AddContent(310, StructuredLogsLoc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsTimestampColumnHeader)]
2504__builder7.AddContent(314, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, item.LogEntry.TimeStamp, MillisecondsDisplay.Truncated)
2520__builder7.AddContent(321, StructuredLogsLoc[nameof(Dashboard.Resources.StructuredLogs.StructuredLogsMessageColumnHeader)]
2532__builder7.AddContent(325, FormatHelpers.TruncateText(item.LogEntry.Message, maxLength: 150)
2593__builder6.AddContent(338, SpanWaterfallViewModel.GetTitle(context.Span, _resources)
2605__builder6.AddContent(342, DurationFormatter.FormatDuration(context.Span.Duration)
2731__builder5.AddContent(360, " ");
2734__builder5.AddContent(361, Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailNoSpans)]
2933__builder.AddContent(377, " ");
2936__builder.AddContent(378, string.Format(Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailTraceNotFound)], TraceId)
2981__builder4.AddContent(384, Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailTraceStartHeader)]
2987__builder4.AddContent(385, " ");
3001__builder4.AddContent(389, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, _trace.FirstSpan.StartTime, MillisecondsDisplay.Truncated)
3016__builder4.AddContent(393, Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailDurationHeader)]
3022__builder4.AddContent(394, " ");
3027__builder4.AddContent(397, DurationFormatter.FormatDuration(trace.Duration)
3042__builder4.AddContent(401, Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailResourcesHeader)]
3048__builder4.AddContent(402, " ");
3068__builder4.AddContent(409, Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailDepthHeader)]
3074__builder4.AddContent(410, " ");
3094__builder4.AddContent(417, Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailTotalSpansHeader)]
3100__builder4.AddContent(418, " ");
Components_Pages_Traces_razor.g.cs (13)
311__builder2.AddContent(16, Loc[nameof(Dashboard.Resources.Traces.TracesHeader)]
723__builder2.AddContent(60, FilterLoc[nameof(StructuredFiltering.NoFilters)]
1004__builder3.AddContent(91, " ");
1007__builder3.AddContent(92, FilterLoc[nameof(StructuredFiltering.AddFilter)]
1384__builder5.AddContent(127, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, context.FirstSpan.StartTime, MillisecondsDisplay.Truncated)
1488__builder5.AddContent(146, OtlpHelpers.ToShortenedId(context.TraceId)
1628__builder7.AddContent(165, GetResourceName(item.Resource)
1634__builder7.AddContent(166, " (");
1664__builder6.AddContent(173, $"+{overflow.ItemsOverflow.Count()}"
1930__builder5.AddContent(203, DurationFormatter.FormatDuration(context.Duration)
1950__builder5.AddContent(204, DurationFormatter.FormatDuration(context.Duration)
2041__builder4.AddContent(220, " ");
2044__builder4.AddContent(221, Loc[nameof(Dashboard.Resources.Traces.TracesNoTraces)]
AzureAIFoundryEndToEnd.WebStory (5)
AzureOpenAIEndToEnd.WebStory (5)
BasicWebSite (8)
BlazorServerApp (8)
artifacts\obj\BlazorServerApp\Release\net10.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_Index_razor.g.cs (1)
87__builder2.AddContent(2, "Index");
BlazorUnitedApp (20)
artifacts\obj\BlazorUnitedApp\Release\net10.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_Index_razor.g.cs (11)
107__builder2.AddContent(2, "Index");
221__builder.AddContent(25, "Name: ");
224__builder.AddContent(26, Value!.Name
233__builder.AddContent(29, "Street: ");
236__builder.AddContent(30, Value.BillingAddress.Street
245__builder.AddContent(33, "City: ");
248__builder.AddContent(34, Value.BillingAddress.City
257__builder.AddContent(37, "State: ");
260__builder.AddContent(38, Value.BillingAddress.State
269__builder.AddContent(41, "Zip: ");
272__builder.AddContent(42, Value.BillingAddress.Zip
artifacts\obj\BlazorUnitedApp\Release\net10.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Routes_razor.g.cs (1)
170__builder3.AddContent(13, "Not found");
DevTunnels.WebFrontEnd (6)
FileBasedApps.WebFrontEnd (6)
GitHubModelsEndToEnd.WebStory (5)
IdentitySample.PasskeyUI (6)
Keycloak.Web (6)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Authorization (2)
Microsoft.AspNetCore.Components.Authorization.Tests (18)
AuthorizeViewTest.cs (10)
30context => builder => builder.AddContent(0, "This should not be rendered"));
58context => builder => builder.AddContent(0, $"You are not authorized, even though we know you are {context.User.Identity.Name}"));
122builder.AddContent(0, $"You are authenticated as {context.User.Identity.Name}"));
158builder.AddContent(0, $"You are authenticated as {context.User.Identity.Name}"));
194builder.AddContent(0, $"You are authenticated as {context.User.Identity.Name}"));
259context => builder => builder.AddContent(0, "You are not authorized"));
300authorizing: builder => builder.AddContent(0, "Auth pending..."),
301authorized: context => builder => builder.AddContent(0, $"Hello, {context.User.Identity.Name}!"));
359authorizing: builder => builder.AddContent(0, "Auth pending..."),
360authorized: context => builder => builder.AddContent(0, $"Hello, {context.User.Identity.Name}!"));
Microsoft.AspNetCore.Components.Endpoints.Tests (32)
Microsoft.AspNetCore.Components.Performance (4)
Microsoft.AspNetCore.Components.QuickGrid (4)
Microsoft.AspNetCore.Components.Server.Tests (18)
Circuits\RemoteRendererTest.cs (14)
42builder.AddContent(1, "some text");
63builder.AddContent(1, "some text");
87builder.AddContent(1, "some text");
112builder.AddContent(0, $"Value {i}");
151builder.AddContent(1, "some text");
208builder.AddContent(1, "some text");
228builder.AddContent(1, "offline text");
271builder.AddContent(1, "some text");
291builder.AddContent(1, "offline text");
339builder.AddContent(1, "some text");
354builder.AddContent(1, "offline text");
396builder.AddContent(1, "some text");
411builder.AddContent(1, "offline text");
737builder.AddContent(1, "some text");
Microsoft.AspNetCore.Components.Tests (211)
LayoutViewTest.cs (15)
43builder.AddContent(123, "Hello");
44builder.AddContent(456, "Goodbye");
91builder.AddContent(123, "Hello");
92builder.AddContent(456, "Goodbye");
123builder.AddContent(123, "Hello");
124builder.AddContent(456, "Goodbye");
164builder.AddContent(0, "Initial content");
174builder.AddContent(0, "Changed content");
208builder.AddContent(0, "Some content");
288builder.AddContent(0, "RootLayout starts here");
290builder.AddContent(2, "RootLayout ends here");
302builder.AddContent(0, "NestedLayout starts here");
304builder.AddContent(2, "NestedLayout ends here");
316builder.AddContent(0, "OtherNestedLayout starts here");
318builder.AddContent(2, "OtherNestedLayout ends here");
RendererTest.cs (32)
37builder.AddContent(1, "some text");
65builder.AddContent(0, "Hello");
2040builder.AddContent(0, message);
2279builder.AddContent(0, "Hello");
2319builder.AddContent(0, "Hello");
2353builder.AddContent(0, "Hello");
2393builder.AddContent(0, "Hello");
2438builder.AddContent(0, "Hello");
2477builder.AddContent(0, "Hello");
2512builder.AddContent(0, "Hello");
2562builder.AddContent(0, "Hello");
2847builder.AddContent(0, "Child event count: " + eventCount);
2937builder.AddContent(0, $"Render count: {++renderCount}");
2973builder.AddContent(2, $"Parent render count: {++parentRenderCount}");
3033builder.AddContent(0, "Some frame so the child isn't at position zero");
3280builder.AddContent(5, "child text");
4170builder.AddContent(1, "some text");
4213builder.AddContent(0, "Hello");
4241builder.AddContent(0, "Hello");
4273builder.AddContent(0, "Hello");
4301builder.AddContent(0, "Hello");
4906builder.AddContent(0, "Hello");
4994builder.AddContent(1, "some text");
5016builder.AddContent(1, "some text");
5295builder.AddContent(0, Message);
5309builder.AddContent(2, Text);
5421builder.AddContent(6, $"Render count: {++renderCount}");
5441builder.AddContent(0, "Parent here");
5473builder.AddContent(0, "Child is here");
5529builder.AddContent(0, $"Hello from {nameof(MultiRendererComponent)}");
5747builder.AddContent(1, $"Id: {component.TestId} BuildRenderTree, {Guid.NewGuid()}");
6094builder.AddContent(1, "Hello");
Rendering\RenderTreeBuilderTest.cs (28)
33builder.AddContent(0, "First item");
34builder.AddContent(0, nullString);
35builder.AddContent(0, "Second item");
161builder.AddContent(0, "some frame so that the element isn't at position zero");
179builder.AddContent(0, "child 1");
180builder.AddContent(0, "child 2");
182builder.AddContent(0, "unrelated item");
197builder.AddContent(0, "standalone text 1"); // 0: standalone text 1
199builder.AddContent(0, "root text 1"); // 2: root text 1
200builder.AddContent(0, "root text 2"); // 3: root text 2
202builder.AddContent(0, "child text"); // 5: child text
204builder.AddContent(0, "grandchild text 1"); // 7: grandchild text 1
205builder.AddContent(0, "grandchild text 2"); // 8: grandchild text 2
208builder.AddContent(0, "root text 3"); // 9: root text 3
212builder.AddContent(0, "standalone text 2"); // 11: standalone text 2
243builder.AddContent(0, "some text"); // 5: some text
477builder.AddContent(1, "hello");
492builder.AddContent(1, "hello");
507builder.AddContent(1, "hello");
663builder.AddContent(3, "Hello"); // 2: Hello
668builder.AddContent(6, "Goodbye"); // 5: Goodbye
689fragmentBuilder.AddContent(0, "Hello from the fragment");
691fragmentBuilder.AddContent(2, "Some text");
720builder.AddContent(3, "some text"); // 3: some text
809builder.AddContent(3, "some text"); // 3: some text
894builder.AddContent(0, "some text");
896builder.AddContent(2, "more text");
1871builder.AddContent(0, "hey");
RenderTreeDiffBuilderTest.cs (114)
51builder => builder.AddContent(0, "Hello"),
74oldTree.AddContent(0, "text0");
75oldTree.AddContent(2, "text2");
76newTree.AddContent(0, "text0");
77newTree.AddContent(1, "text1");
78newTree.AddContent(2, "text2");
97oldTree.AddContent(0, "text0");
98oldTree.AddContent(1, "text1");
99oldTree.AddContent(2, "text2");
100newTree.AddContent(0, "text0");
101newTree.AddContent(2, "text2");
117oldTree.AddContent(1, "Existing");
122newTree.AddContent(1, "Inserted");
127newTree.AddContent(1, "Existing");
152oldTree.AddContent(1, "First");
157oldTree.AddContent(1, "Second");
162newTree.AddContent(1, "Second");
182oldTree.AddContent(1, "Original");
187newTree.AddContent(1, "Inserted");
558oldTree.AddContent(0, "x"); // Loop start
559oldTree.AddContent(1, "x"); // Will be removed
560oldTree.AddContent(2, "x"); // Will be removed
561oldTree.AddContent(0, "x"); // Loop start
562newTree.AddContent(0, "x"); // Loop start
563newTree.AddContent(0, "x"); // Loop start
578oldTree.AddContent(10, "x"); // Loop start
579oldTree.AddContent(10, "x"); // Loop start
580newTree.AddContent(10, "x"); // Loop start
581newTree.AddContent(11, "x"); // Will be added
582newTree.AddContent(12, "x"); // Will be added
583newTree.AddContent(10, "x"); // Loop start
608oldTree.AddContent(0, "x");
609oldTree.AddContent(1, "x");
610oldTree.AddContent(0, "x"); // Will be removed
611oldTree.AddContent(1, "x"); // Will be removed
612newTree.AddContent(0, "x");
613newTree.AddContent(1, "x");
628oldTree.AddContent(10, "x");
629oldTree.AddContent(11, "x");
630newTree.AddContent(10, "x");
631newTree.AddContent(11, "x");
632newTree.AddContent(10, "x"); // Will be added
633newTree.AddContent(11, "x"); // Will be added
658oldTree.AddContent(12, "x");
659oldTree.AddContent(12, "x"); // Note that the '0' and '1' items are not present on this iteration
660newTree.AddContent(12, "x");
661newTree.AddContent(10, "x");
662newTree.AddContent(11, "x");
663newTree.AddContent(12, "x");
688oldTree.AddContent(2, "x");
689oldTree.AddContent(0, "x");
690oldTree.AddContent(1, "x");
691oldTree.AddContent(2, "x");
692newTree.AddContent(2, "x");
693newTree.AddContent(2, "x"); // Note that the '0' and '1' items are not present on this iteration
708oldTree.AddContent(0, "text");
709newTree.AddContent(1, "text");
724oldTree.AddContent(123, "old text 1");
725oldTree.AddContent(182, "old text 2");
726newTree.AddContent(123, "new text 1");
727newTree.AddContent(182, "new text 2");
1320oldTree.AddContent(09, "unrelated");
1324oldTree.AddContent(13, "grandchild old text");
1329newTree.AddContent(09, "unrelated");
1333newTree.AddContent(13, "grandchild new text");
1362oldTree.AddContent(11, "Text that will change");
1365oldTree.AddContent(14, "Text that will not change");
1371newTree.AddContent(11, "Text that has changed");
1374newTree.AddContent(14, "Text that will not change");
1398oldTree.AddContent(10, "text1");
1399oldTree.AddContent(11, "text2");
1400oldTree.AddContent(12, "text3");
1401oldTree.AddContent(13, "text4");
1402newTree.AddContent(10, "text1");
1403newTree.AddContent(11, "text2modified");
1404newTree.AddContent(12, "text3");
1405newTree.AddContent(13, "text4");
1424oldTree.AddContent(0, "Will not change");
1425newTree.AddContent(0, "Will not change");
1428newTree.AddContent(0, "text1");
1452oldTree.AddContent(1, "Start");
1453oldTree.AddContent(3, "End");
1454newTree.AddContent(1, "Start");
1456newTree.AddContent(4, "Text inside region"); // Sequence number is unrelated to outside the region
1458newTree.AddContent(6, "Text inside nested region");
1461newTree.AddContent(3, "End");
1486oldTree.AddContent(1, "Start");
1488oldTree.AddContent(4, "Text inside region"); // Sequence number is unrelated to outside the region
1490oldTree.AddContent(6, "Text inside nested region");
1493oldTree.AddContent(3, "End");
1494newTree.AddContent(1, "Start");
1495newTree.AddContent(3, "End");
1510oldTree.AddContent(1, "Start");
1512oldTree.AddContent(4, "Text inside region");
1513oldTree.AddContent(5, "Text to move");
1517oldTree.AddContent(3, "End");
1518newTree.AddContent(1, "Start");
1520newTree.AddContent(4, "Changed text inside region");
1522newTree.AddContent(5, "Text to move"); // Although it's the same sequence and content, it's now in a different region so not the same
1525newTree.AddContent(3, "End");
1551oldTree.AddContent(10, "text1"); // 0: text1
1554newTree.AddContent(10, "text1"); // 0: text1
1613oldTree.AddContent(10, "text1"); // 0: text1
1620newTree.AddContent(10, "text1"); // 0: text1
1974oldTree.AddContent(1, "First");
1977oldTree.AddContent(2, "Unkeyed item");
1981oldTree.AddContent(1, "Second");
1986newTree.AddContent(1, "Second");
1989newTree.AddContent(2, "Unkeyed item");
1993newTree.AddContent(1, "First modified");
2029oldTree.AddContent(2, "Unkeyed item");
2045newTree.AddContent(2, "Unkeyed item");
2176oldTree.AddContent(1, "Hello!");
2179newTree.AddContent(0, "some text");
Routing\RouterTest.cs (7)
36_router.Found = routeData => (builder) => builder.AddContent(0, $"Rendering route matching {routeData.PageType}");
238{ nameof(Router.NotFound), (RenderFragment)(builder => builder.AddContent(0, "Custom content")) },
286router.Found = routeData => (builder) => builder.AddContent(0, $"Rendering route matching {routeData.PageType}");
292{ nameof(Router.NotFound), (RenderFragment)(builder => builder.AddContent(0, "Custom not found")) },
321testRouter.Found = routeData => (builder) => builder.AddContent(0, $"Rendering route matching {routeData.PageType}");
368testRouter.Found = routeData => (builder) => builder.AddContent(0, $"Rendering route matching {routeData.PageType}");
420testRouter.Found = routeData => (builder) => builder.AddContent(0, $"Rendering route matching {routeData.PageType}");
Microsoft.AspNetCore.Components.Web (4)
Microsoft.AspNetCore.Components.Web.Tests (28)
HtmlRendering\HtmlRendererTest.cs (28)
75rtb.AddContent(1, "Hello world!");
98rtb.AddContent(1, "<Hello world!>");
145rtb.AddContent(2, "Hello world!");
178rtb.AddContent(4, "Hello world!");
202rtb.AddContent(2, "Hello world!");
273rtb.AddContent(2, "Hello world!");
302rtb.AddContent(2, "Hello world!");
305rtb.AddContent(4, "Bye Bye world!");
345rtb.AddContent(8, $"Pick value {optionValue}");
353rtb.AddContent(11, "unrelated option");
404rtb.AddContent(3, "Hello <html>-encoded content!");
452rtb.AddContent(3, "Some content");
499rtb.AddContent(1, "Something");
559rtb.AddContent(5, optionValue);
590rtb.AddContent(2, "Hello world!");
621rtb.AddContent(2, "Hello world!");
687rtb.AddContent(2, rf => rf.AddContent(0, "Hello world!"));
716rtb.AddContent(3, rf => rf.AddContent(0, "Hello world!"));
824builder.AddContent(0, "Hello from the section content provider");
841builder.AddContent(1, "Hey!");
991rtb.AddContent(2, name);
995rtb.AddContent(5, name);
1231builder.AddContent(1, Value.ToString(CultureInfo.InvariantCulture));
1261builder.AddContent(1, Value.ToString(CultureInfo.InvariantCulture));
1289rtb.AddContent(2, content);
1331=> builder.AddContent(0, status);
1355builder.AddContent(0, "Hello");
1362builder.AddContent(1, "Goodbye");
Microsoft.AspNetCore.Components.WebView.Test (2)
Microsoft.AspNetCore.Components.WebViewE2E.Test (2)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
MyFrontend (7)
OpenAIEndToEnd.WebStory (5)
Publishers.Frontend (5)
WaitFor.Frontend (5)
Wasm.Performance.TestApp (44)
WebFrontEnd (17)
Components_Pages_ExternalServices_razor.g.cs (11)
113__builder2.AddContent(2, "External Services");
154__builder.AddContent(10, nugetApiVersion
173__builder.AddContent(14, "Response from ");
176__builder.AddContent(15, externalServiceUrl
182__builder.AddContent(16, ": ");
207__builder.AddContent(18, externalServiceStatus
258__builder.AddContent(24, gatewayNugetApiVersion
277__builder.AddContent(28, "Response from ");
280__builder.AddContent(29, gatewayExternalServiceUrl
286__builder.AddContent(30, ": ");
319__builder.AddContent(32, gatewayExternalServiceStatus