30 references to SectionOutlet
Aspire.Dashboard (2)
Components\Controls\StableSectionContent.razor.cs (2)
9/// Provides content to a <see cref="Microsoft.AspNetCore.Components.Sections.SectionOutlet"/> without recreating it each 13/// A <see cref="Microsoft.AspNetCore.Components.Sections.SectionOutlet"/> keys its content by the
Aspire.Dashboard.Components.Tests (8)
Controls\ApplicationSummaryTests.cs (3)
43var outlet = Render<SectionOutlet>(builder => builder.Add(p => p.SectionName, ResourcesLayout.HeaderActionsSectionName)); 224var outlet = Render<SectionOutlet>(builder => builder.Add(p => p.SectionName, ResourcesLayout.HeaderActionsSectionName)); 245var outlet = Render<SectionOutlet>(builder => builder.Add(p => p.SectionName, ResourcesLayout.HeaderActionsSectionName));
Controls\StableSectionContentTests.cs (2)
46builder.OpenComponent<SectionOutlet>(0); 47builder.AddComponentParameter(1, nameof(SectionOutlet.SectionName), "test-section");
Layout\ResourcesLayoutTests.cs (3)
680var header = Render<SectionOutlet>(p => p.Add(p => p.SectionName, MainLayout.HeaderContextSectionName)); 715var header = Render<SectionOutlet>(p => p.Add(p => p.SectionName, MainLayout.HeaderContextSectionName)); 2060var header = Render<SectionOutlet>(p => p.Add(p => p.SectionName, MainLayout.HeaderContextSectionName));
Microsoft.AspNetCore.Components (16)
Rendering\ComponentState.cs (3)
41LogicalParentComponentState = component is SectionOutlet.SectionOutletContentRenderer 42? (GetSectionOutletLogicalParent(renderer, (SectionOutlet)parentComponentState!.Component) ?? parentComponentState) 63private static ComponentState? GetSectionOutletLogicalParent(Renderer renderer, SectionOutlet sectionOutlet)
Sections\SectionContent.cs (5)
7/// Provides content to <see cref="SectionOutlet"/> components with matching <see cref="SectionId"/>s. 18/// Gets or sets the <see cref="string"/> ID that determines which <see cref="SectionOutlet"/> instance will render 24/// Gets or sets the <see cref="object"/> ID that determines which <see cref="SectionOutlet"/> instance will render 31/// <see cref="SectionOutlet"/>. 36/// Gets or sets the content to be rendered in corresponding <see cref="SectionOutlet"/> instances.
Sections\SectionOutlet.cs (2)
50throw new InvalidOperationException($"{nameof(SectionOutlet)} requires that '{nameof(SectionName)}' and '{nameof(SectionId)}' cannot both have non-null values."); 62throw new InvalidOperationException($"{nameof(SectionOutlet)} requires a non-null value either for '{nameof(SectionName)}' or '{nameof(SectionId)}'.");
Sections\SectionRegistry.cs (6)
10private readonly Dictionary<object, SectionOutlet> _subscribersByIdentifier = new(); 58if (_subscribersByIdentifier.TryGetValue(identifier, out var subscriber)) 65public void Subscribe(object identifier, SectionOutlet subscriber) 106if (_subscribersByIdentifier.TryGetValue(identifier, out var subscriber)) 113private void DetectRenderModeMismatch(object identifier, SectionOutlet subscriber, SectionContent? provider) 171if (_subscribersByIdentifier.TryGetValue(identifier, out var subscriber))
Microsoft.AspNetCore.Components.Web (4)
Head\HeadOutlet.cs (4)
40builder.OpenComponent<SectionOutlet>(0); 41builder.AddComponentParameter(1, nameof(SectionOutlet.SectionId), TitleSectionId); 55builder.OpenComponent<SectionOutlet>(6); 56builder.AddComponentParameter(7, nameof(SectionOutlet.SectionId), HeadSectionId);