20 references to SectionOutlet
Microsoft.AspNetCore.Components (16)
Rendering\ComponentState.cs (3)
40
LogicalParentComponentState = component is
SectionOutlet
.SectionOutletContentRenderer
41
? (GetSectionOutletLogicalParent(renderer, (
SectionOutlet
)parentComponentState!.Component) ?? parentComponentState)
62
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);