19 references to SectionOutlet
Microsoft.AspNetCore.Components (13)
Rendering\ComponentState.cs (3)
39
LogicalParentComponentState = component is
SectionOutlet
.SectionOutletContentRenderer
40
? (GetSectionOutletLogicalParent(renderer, (
SectionOutlet
)parentComponentState!.Component) ?? parentComponentState)
54
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.
16
/// Gets or sets the <see cref="string"/> ID that determines which <see cref="
SectionOutlet
"/> instance will render
22
/// Gets or sets the <see cref="object"/> ID that determines which <see cref="
SectionOutlet
"/> instance will render
29
/// <see cref="
SectionOutlet
"/>.
34
/// Gets or sets the content to be rendered in corresponding <see cref="
SectionOutlet
"/> instances.
Sections\SectionOutlet.cs (2)
47
throw new InvalidOperationException($"{nameof(
SectionOutlet
)} requires that '{nameof(SectionName)}' and '{nameof(SectionId)}' cannot both have non-null values.");
59
throw new InvalidOperationException($"{nameof(
SectionOutlet
)} requires a non-null value either for '{nameof(SectionName)}' or '{nameof(SectionId)}'.");
Sections\SectionRegistry.cs (3)
8
private readonly Dictionary<object,
SectionOutlet
> _subscribersByIdentifier = new();
54
public void Subscribe(object identifier,
SectionOutlet
subscriber)
103
if (_subscribersByIdentifier.TryGetValue(identifier, out
var
subscriber))
Microsoft.AspNetCore.Components.Web (4)
Head\HeadOutlet.cs (4)
39
builder.OpenComponent<
SectionOutlet
>(0);
40
builder.AddComponentParameter(1, nameof(
SectionOutlet
.SectionId), TitleSectionId);
54
builder.OpenComponent<
SectionOutlet
>(6);
55
builder.AddComponentParameter(7, nameof(
SectionOutlet
.SectionId), HeadSectionId);
Microsoft.AspNetCore.Components.Web.Tests (2)
HtmlRendering\HtmlRendererTest.cs (2)
811
var first = await htmlRenderer.RenderComponentAsync<
SectionOutlet
>(ParameterView.FromDictionary(new Dictionary<string, object>
813
{ nameof(
SectionOutlet
.SectionId), "testsection" }