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