8 references to CacheViewService
Microsoft.AspNetCore.Components.Endpoints (8)
CacheView\CacheView.cs (1)
100
[Inject] internal
CacheViewService
? CacheService { get; set; }
DependencyInjection\RazorComponentsServiceCollectionExtensions.cs (1)
86
services.TryAddSingleton<
CacheViewService
>();
Rendering\EndpointHtmlRenderer.Streaming.cs (6)
278
CacheViewService
.ThrowIfNestedInsideCapturingCacheView(output);
289
if (
CacheViewService
.TryBeginWrite(renderState, cacheView, output, out var wrappedOutput))
308
if (captureWriter is not null && captureWriter.IsCapturing && (!
CacheViewService
.IsCacheableComponent(componentState.Component.GetType(), captureWriter.VaryBy) || renderBoundaryMarkers))
419
private
CacheViewService
? _CacheViewService;
421
private
CacheViewService
GetCacheViewService()
422
=> _CacheViewService ??= _httpContext.RequestServices.GetRequiredService<
CacheViewService
>();