1 write to renderer
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
46
renderer
= GetEndpointHtmlRenderer();
62 references to renderer
Microsoft.AspNetCore.Components.Endpoints.Tests (62)
EndpointHtmlRendererTest.cs (62)
57
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveWebAssemblyRenderMode(prerender: false), ParameterView.Empty);
58
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
80
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), RenderMode.InteractiveWebAssembly, ParameterView.Empty);
81
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
118
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent),
124
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
155
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent),
161
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
190
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent),
196
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
239
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent),
245
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
287
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), null, ParameterView.Empty);
288
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
304
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(false), ParameterView.Empty);
305
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
336
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), RenderMode.InteractiveServer, ParameterView.Empty);
337
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
380
var server = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters);
381
var client = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveWebAssembly, parameters);
397
var firstResult = await
renderer
.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(true), ParameterView.Empty);
398
var firstComponent = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(firstResult));
401
var secondResult = await
renderer
.PrerenderComponentAsync(httpContext, typeof(SimpleComponent), new InteractiveServerRenderMode(false), ParameterView.Empty);
402
var secondComponent = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(secondResult));
438
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), null, parameters);
441
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
455
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), new InteractiveServerRenderMode(false), parameters);
456
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
494
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), new InteractiveServerRenderMode(false), parameters);
495
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
533
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters);
534
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
584
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), RenderMode.InteractiveServer, parameters);
585
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
634
async () => await
renderer
.PrerenderComponentAsync(httpContext, typeof(GreetingComponent), new NonexistentRenderMode(), parameters),
650
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(OnAfterRenderComponent), null, parameters);
653
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
697
var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await
renderer
.PrerenderComponentAsync(
717
var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await
renderer
.PrerenderComponentAsync(
737
var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await
renderer
.PrerenderComponentAsync(
769
var exception = await Assert.ThrowsAsync<InvalidOperationException>(async () => await
renderer
.PrerenderComponentAsync(
797
await
renderer
.PrerenderComponentAsync(
818
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(AsyncComponent), null, ParameterView.Empty);
819
var content = await
renderer
.Dispatcher.InvokeAsync(() => HtmlContentToString(result));
1058
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(ComponentWithInteractiveChildren), null, ParameterView.Empty);
1059
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
1160
var result = await
renderer
.PrerenderComponentAsync(httpContext, typeof(InteractiveWithInteractiveChild),
1163
await
renderer
.Dispatcher.InvokeAsync(() => result.WriteTo(writer, HtmlEncoder.Default));
1190
var content = await
renderer
.PrerenderPersistedStateAsync(httpContext);
1211
var content = await
renderer
.PrerenderPersistedStateAsync(httpContext);
1241
var content = await
renderer
.PrerenderPersistedStateAsync(httpContext);
1277
var content = await
renderer
.PrerenderPersistedStateAsync(httpContext);
1331
var content = await
renderer
.PrerenderPersistedStateAsync(httpContext);
1369
await Assert.ThrowsAsync<InvalidOperationException>(async () => await
renderer
.PrerenderPersistedStateAsync(httpContext));
1394
var id =
renderer
.AssignRootComponentId(ssrBoundary);
1396
await
renderer
.Dispatcher.InvokeAsync(() =>
renderer
.RenderRootComponentAsync(id, ParameterView.Empty));
1398
var content = await
renderer
.PrerenderPersistedStateAsync(httpContext);
1459
var id =
renderer
.AssignRootComponentId(ssrBoundary);
1460
await
renderer
.Dispatcher.InvokeAsync(() =>
renderer
.RenderRootComponentAsync(
1467
var content = await
renderer
.PrerenderPersistedStateAsync(httpContext);