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)
43
var outlet = Render<
SectionOutlet
>(builder => builder.Add(p => p.SectionName, ResourcesLayout.HeaderActionsSectionName));
224
var outlet = Render<
SectionOutlet
>(builder => builder.Add(p => p.SectionName, ResourcesLayout.HeaderActionsSectionName));
245
var outlet = Render<
SectionOutlet
>(builder => builder.Add(p => p.SectionName, ResourcesLayout.HeaderActionsSectionName));
Controls\StableSectionContentTests.cs (2)
46
builder.OpenComponent<
SectionOutlet
>(0);
47
builder.AddComponentParameter(1, nameof(
SectionOutlet
.SectionName), "test-section");
Layout\ResourcesLayoutTests.cs (3)
680
var header = Render<
SectionOutlet
>(p => p.Add(p => p.SectionName, MainLayout.HeaderContextSectionName));
715
var header = Render<
SectionOutlet
>(p => p.Add(p => p.SectionName, MainLayout.HeaderContextSectionName));
2060
var header = Render<
SectionOutlet
>(p => p.Add(p => p.SectionName, MainLayout.HeaderContextSectionName));
Microsoft.AspNetCore.Components (16)
Rendering\ComponentState.cs (3)
41
LogicalParentComponentState = component is
SectionOutlet
.SectionOutletContentRenderer
42
? (GetSectionOutletLogicalParent(renderer, (
SectionOutlet
)parentComponentState!.Component) ?? parentComponentState)
63
private 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)
50
throw new InvalidOperationException($"{nameof(
SectionOutlet
)} requires that '{nameof(SectionName)}' and '{nameof(SectionId)}' cannot both have non-null values.");
62
throw new InvalidOperationException($"{nameof(
SectionOutlet
)} requires a non-null value either for '{nameof(SectionName)}' or '{nameof(SectionId)}'.");
Sections\SectionRegistry.cs (6)
10
private readonly Dictionary<object,
SectionOutlet
> _subscribersByIdentifier = new();
58
if (_subscribersByIdentifier.TryGetValue(identifier, out
var
subscriber))
65
public void Subscribe(object identifier,
SectionOutlet
subscriber)
106
if (_subscribersByIdentifier.TryGetValue(identifier, out
var
subscriber))
113
private void DetectRenderModeMismatch(object identifier,
SectionOutlet
subscriber, SectionContent? provider)
171
if (_subscribersByIdentifier.TryGetValue(identifier, out
var
subscriber))
Microsoft.AspNetCore.Components.Web (4)
Head\HeadOutlet.cs (4)
40
builder.OpenComponent<
SectionOutlet
>(0);
41
builder.AddComponentParameter(1, nameof(
SectionOutlet
.SectionId), TitleSectionId);
55
builder.OpenComponent<
SectionOutlet
>(6);
56
builder.AddComponentParameter(7, nameof(
SectionOutlet
.SectionId), HeadSectionId);