22 references to CacheView
Microsoft.AspNetCore.Components.Endpoints (22)
CacheView\CacheView.cs (1)
27/// <see cref="CacheView"/> instances share the same component ancestor.
CacheView\CacheViewKeyResolver.cs (1)
28internal static string ComputeKey(CacheView cacheView, HttpContext httpContext)
CacheView\CacheViewService.cs (10)
21private readonly ILogger<CacheView> _logger; 34_logger = loggerFactory.CreateLogger<CacheView>(); 79public async Task<CacheViewRenderState?> PrepareAsync(CacheView cacheView, HttpContext httpContext) 102$"Set a unique {nameof(CacheView.CacheKey)} on each CacheView so every CacheView on the page has a distinct cache key."); 128public static bool TryBeginWrite(CacheViewRenderState? state, CacheView cacheView, TextWriter output, out TextWriter wrappedOutput) 211public static CacheVaryBy GetVaryBy(CacheView cacheView) 274private async Task ResolveOrBeginCreateAsync(CacheView cacheView, CacheViewRenderState state, TaskCompletionSource<SerializedRenderFragment?> resolution, CancellationToken cancellationToken) 360private static Dictionary<string, (CacheView Owner, Task<SerializedRenderFragment?> Task)> GetInFlightResolutions(HttpContext httpContext) 362if (httpContext.Items[_inFlightResolutionsItemKey] is not Dictionary<string, (CacheView Owner, Task<SerializedRenderFragment?> Task)> resolutions) 364resolutions = new Dictionary<string, (CacheView, Task<SerializedRenderFragment?>)>(StringComparer.Ordinal);
CacheView\HybridCacheViewStore.cs (4)
58$"{nameof(CacheView)}.{nameof(CacheView.ExpiresSliding)} is not supported when the cache view store uses HybridCache. " + 59$"Use {nameof(CacheView.ExpiresAfter)} or {nameof(CacheView.ExpiresOn)} for absolute expiration.");
DependencyInjection\RazorComponentsServiceOptions.cs (2)
109/// Gets or sets the maximum size, in bytes, of the in-memory cache used by <see cref="CacheView"/> 127/// Gets or sets the <see cref="HybridCache"/> used by <see cref="CacheView"/> for server-side
Rendering\EndpointComponentState.cs (3)
21private static readonly string _cacheViewTypeName = typeof(CacheView).FullName!; 51if (component is CacheView cacheView && parentComponentState is not null) 102private int FindSequenceInParent(ComponentState parentState, CacheView target)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
276if (componentState.Component is CacheView cacheView)