| File: CacheView\CacheViewRenderState.cs | Web Access |
| Project: src\aspnetcore\src\Components\Endpoints\src\Microsoft.AspNetCore.Components.Endpoints.csproj (Microsoft.AspNetCore.Components.Endpoints) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Components.Endpoints; internal sealed class CacheViewRenderState { public CacheViewRenderState(string key, CacheVaryBy varyBy) { Key = key; VaryBy = varyBy; } public string Key { get; } public CacheVaryBy VaryBy { get; } public RenderFragment? Content { get; set; } public bool IsCacheHit { get; set; } public TaskCompletionSource<SerializedRenderFragment>? CaptureCompletion { get; set; } public Task<SerializedRenderFragment>? PendingStoreTask { get; set; } public CacheViewTextWriter? ActiveWriter { get; set; } }