1 instantiation of HtmlRootComponent
Microsoft.AspNetCore.Components.Web (1)
HtmlRendering\StaticHtmlRenderer.cs (1)
78
return new
HtmlRootComponent
(this, componentId, quiescenceTask);
77 references to HtmlRootComponent
Microsoft.AspNetCore.Components.Endpoints (4)
Rendering\EndpointHtmlRenderer.Prerendering.cs (4)
122
var
htmlRootComponent = await Dispatcher.InvokeAsync(() => BeginRenderingComponent(rootComponent, parameters));
147
var
component = BeginRenderingComponent(rootComponentType, parameters);
254
private readonly
HtmlRootComponent
? _htmlToEmitOrNull;
261
HtmlRootComponent
? 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>
51
public
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>
63
public
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>
75
public
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>
88
public
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>
99
public 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>
108
public 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>
119
public 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>
130
public async Task<
HtmlRootComponent
> RenderComponentAsync(
134
var
content = BeginRenderingComponent(componentType, parameters);
HtmlRendering\StaticHtmlRenderer.cs (4)
51
/// <returns>An <see cref="
HtmlRootComponent
"/> that can be used to obtain the rendered HTML.</returns>
52
public
HtmlRootComponent
BeginRenderingComponent(
65
/// <returns>An <see cref="
HtmlRootComponent
"/> that can be used to obtain the rendered HTML.</returns>
66
public
HtmlRootComponent
BeginRenderingComponent(
Microsoft.AspNetCore.Components.Web.Tests (44)
HtmlRendering\HtmlRendererTest.cs (44)
39
var
htmlContent = await htmlRenderer.Dispatcher.InvokeAsync(htmlRenderer.BeginRenderingComponent<TestComponent>);
60
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
83
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
106
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
129
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
153
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
186
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
211
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
234
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
257
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
282
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
314
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
362
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
387
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
412
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
436
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
460
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
484
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
507
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
532
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
571
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
602
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
634
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
665
var
result = await htmlRenderer.RenderComponentAsync<ComponentWithParameters>(
696
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
725
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
763
var
result = await htmlRenderer.RenderComponentAsync<AsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
789
var
result = await htmlRenderer.RenderComponentAsync<NestedAsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
811
var
first = await htmlRenderer.RenderComponentAsync<SectionOutlet>(ParameterView.FromDictionary(new Dictionary<string, object>
819
var
second = await htmlRenderer.RenderComponentAsync<SectionContent>(ParameterView.FromDictionary(new Dictionary<string, object>
851
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
872
var
result = htmlRenderer.BeginRenderingComponent<AsyncLoadingComponent>();
957
var
content = htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
1002
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1027
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1050
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1075
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1103
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1134
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1156
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1178
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1199
var
result = await htmlRenderer.RenderComponentAsync<TestComponent>();
1208
void AssertHtmlContentEquals(IEnumerable<string> expected,
HtmlRootComponent
actual)
1211
void AssertHtmlContentEquals(string expected,
HtmlRootComponent
actual)