1 instantiation of HtmlRootComponent
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.cs (1)
78return new HtmlRootComponent(this, componentId, quiescenceTask);
77 references to HtmlRootComponent
Microsoft.AspNetCore.Components.Endpoints (4)
Rendering\EndpointHtmlRenderer.Prerendering.cs (4)
122var htmlRootComponent = await Dispatcher.InvokeAsync(() => BeginRenderingComponent(rootComponent, parameters)); 147var component = BeginRenderingComponent(rootComponentType, parameters); 254private readonly HtmlRootComponent? _htmlToEmitOrNull; 261HtmlRootComponent? htmlToEmitOrNull)
Microsoft.AspNetCore.Components.Web (29)
HtmlRendering\HtmlRenderer.cs (25)
46/// any asynchronous operations such as loading, await <see cref="HtmlRootComponent.QuiescenceTask"/> before 47/// reading content from the <see cref="HtmlRootComponent"/>. 50/// <returns>An <see cref="HtmlRootComponent"/> instance representing the render output.</returns> 51public HtmlRootComponent BeginRenderingComponent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TComponent>() where TComponent : IComponent 57/// any asynchronous operations such as loading, await <see cref="HtmlRootComponent.QuiescenceTask"/> before 58/// reading content from the <see cref="HtmlRootComponent"/>. 62/// <returns>An <see cref="HtmlRootComponent"/> instance representing the render output.</returns> 63public HtmlRootComponent BeginRenderingComponent<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TComponent>( 70/// any asynchronous operations such as loading, await <see cref="HtmlRootComponent.QuiescenceTask"/> before 71/// reading content from the <see cref="HtmlRootComponent"/>. 74/// <returns>An <see cref="HtmlRootComponent"/> instance representing the render output.</returns> 75public HtmlRootComponent BeginRenderingComponent( 82/// any asynchronous operations such as loading, await <see cref="HtmlRootComponent.QuiescenceTask"/> before 83/// reading content from the <see cref="HtmlRootComponent"/>. 87/// <returns>An <see cref="HtmlRootComponent"/> instance representing the render output.</returns> 88public HtmlRootComponent BeginRenderingComponent( 98/// <returns>A task that completes with <see cref="HtmlRootComponent"/> once the component hierarchy has completed any asynchronous tasks such as loading.</returns> 99public Task<HtmlRootComponent> RenderComponentAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TComponent>() where TComponent : IComponent 107/// <returns>A task that completes with <see cref="HtmlRootComponent"/> once the component hierarchy has completed any asynchronous tasks such as loading.</returns> 108public Task<HtmlRootComponent> RenderComponentAsync( 118/// <returns>A task that completes with <see cref="HtmlRootComponent"/> once the component hierarchy has completed any asynchronous tasks such as loading.</returns> 119public Task<HtmlRootComponent> RenderComponentAsync<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TComponent>( 129/// <returns>A task that completes with <see cref="HtmlRootComponent"/> once the component hierarchy has completed any asynchronous tasks such as loading.</returns> 130public async Task<HtmlRootComponent> RenderComponentAsync( 134var content = BeginRenderingComponent(componentType, parameters);
HtmlRendering\StaticHtmlRenderer.cs (4)
51/// <returns>An <see cref="HtmlRootComponent"/> that can be used to obtain the rendered HTML.</returns> 52public HtmlRootComponent BeginRenderingComponent( 65/// <returns>An <see cref="HtmlRootComponent"/> that can be used to obtain the rendered HTML.</returns> 66public HtmlRootComponent BeginRenderingComponent(
Microsoft.AspNetCore.Components.Web.Tests (44)
HtmlRendering\HtmlRendererTest.cs (44)
39var htmlContent = await htmlRenderer.Dispatcher.InvokeAsync(htmlRenderer.BeginRenderingComponent<TestComponent>); 60var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 83var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 106var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 129var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 153var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 186var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 211var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 234var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 257var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 282var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 314var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 362var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 387var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 412var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 436var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 460var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 484var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 507var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 532var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 571var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 602var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 634var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 665var result = await htmlRenderer.RenderComponentAsync<ComponentWithParameters>( 696var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 725var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 763var result = await htmlRenderer.RenderComponentAsync<AsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 789var result = await htmlRenderer.RenderComponentAsync<NestedAsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 811var first = await htmlRenderer.RenderComponentAsync<SectionOutlet>(ParameterView.FromDictionary(new Dictionary<string, object> 819var second = await htmlRenderer.RenderComponentAsync<SectionContent>(ParameterView.FromDictionary(new Dictionary<string, object> 851var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 872var result = htmlRenderer.BeginRenderingComponent<AsyncLoadingComponent>(); 957var content = htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 1002var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1027var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1050var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1075var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1103var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1134var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1156var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1178var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1199var result = await htmlRenderer.RenderComponentAsync<TestComponent>(); 1208void AssertHtmlContentEquals(IEnumerable<string> expected, HtmlRootComponent actual) 1211void AssertHtmlContentEquals(string expected, HtmlRootComponent actual)