15 references to EndpointHtmlRenderer
Microsoft.AspNetCore.Components.Endpoints (15)
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (3)
58
services.TryAddScoped<
EndpointHtmlRenderer
>();
59
services.TryAddScoped<IComponentPrerenderer>(services => services.GetRequiredService<
EndpointHtmlRenderer
>());
73
services.TryAddCascadingValue(sp => sp.GetRequiredService<
EndpointHtmlRenderer
>().HttpContext);
RazorComponentEndpointInvoker.cs (7)
22
private readonly
EndpointHtmlRenderer
_renderer;
25
public RazorComponentEndpointInvoker(
EndpointHtmlRenderer
renderer, ILogger<RazorComponentEndpointInvoker> logger)
47
EndpointHtmlRenderer
.MarkAsAllowingEnhancedNavigation(context);
77
await
EndpointHtmlRenderer
.InitializeStandardComponentServicesAsync(
117
await
EndpointHtmlRenderer
.HandleNavigationException(context, ex);
177
if (
EndpointHtmlRenderer
.ShouldShowDetailedErrors(context))
225
if (
EndpointHtmlRenderer
.ShouldShowDetailedErrors(context))
Rendering\SSRRenderModeBoundary.cs (1)
179
var invocationId =
EndpointHtmlRenderer
.GetOrCreateInvocationId(httpContext);
Results\RazorComponentResultExecutor.cs (4)
47
var
endpointHtmlRenderer = httpContext.RequestServices.GetRequiredService<
EndpointHtmlRenderer
>();
52
EndpointHtmlRenderer
.MarkAsAllowingEnhancedNavigation(httpContext);
70
var htmlContent = (
EndpointHtmlRenderer
.PrerenderedComponentHtmlContent)(await endpointHtmlRenderer.PrerenderComponentAsync(