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