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)
28
internal static string ComputeKey(
CacheView
cacheView, HttpContext httpContext)
CacheView\CacheViewService.cs (10)
21
private readonly ILogger<
CacheView
> _logger;
34
_logger = loggerFactory.CreateLogger<
CacheView
>();
79
public 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.");
128
public static bool TryBeginWrite(CacheViewRenderState? state,
CacheView
cacheView, TextWriter output, out TextWriter wrappedOutput)
211
public static CacheVaryBy GetVaryBy(
CacheView
cacheView)
274
private async Task ResolveOrBeginCreateAsync(
CacheView
cacheView, CacheViewRenderState state, TaskCompletionSource<SerializedRenderFragment?> resolution, CancellationToken cancellationToken)
360
private static Dictionary<string, (
CacheView
Owner, Task<SerializedRenderFragment?> Task)> GetInFlightResolutions(HttpContext httpContext)
362
if (httpContext.Items[_inFlightResolutionsItemKey] is not Dictionary<string, (
CacheView
Owner, Task<SerializedRenderFragment?> Task)> resolutions)
364
resolutions = 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)
21
private static readonly string _cacheViewTypeName = typeof(
CacheView
).FullName!;
51
if (component is
CacheView
cacheView && parentComponentState is not null)
102
private int FindSequenceInParent(ComponentState parentState,
CacheView
target)
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
276
if (componentState.Component is
CacheView
cacheView)