2 instantiations of OutputCacheEntry
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntryFormatter.cs (1)
254var result = new OutputCacheEntry(created, statusCode);
OutputCacheMiddleware.cs (1)
404var cacheEntry = new OutputCacheEntry(context.ResponseTime!.Value, response.StatusCode)
20 references to OutputCacheEntry
Microsoft.AspNetCore.OutputCaching (20)
CacheEntryHelpers.cs (1)
10internal static long EstimateCachedResponseSize(OutputCacheEntry cachedResponse)
OutputCacheContext.cs (2)
73internal OutputCacheEntry? CachedResponse { get; set; } 77var tmp = CachedResponse;
OutputCacheEntry.cs (2)
74internal OutputCacheEntry CreateBodyFrom(IList<byte[]> segments) // mainly used from tests 81internal OutputCacheEntry CopyHeadersFrom(IHeaderDictionary headers)
OutputCacheEntryFormatter.cs (6)
14/// Formats <see cref="OutputCacheEntry"/> instance to match structures supported by the <see cref="IOutputCacheStore"/> implementations. 24public static async ValueTask<OutputCacheEntry?> GetAsync(string key, IOutputCacheStore store, CancellationToken cancellationToken) 38public static async ValueTask StoreAsync(string key, OutputCacheEntry value, HashSet<string>? tags, TimeSpan duration, IOutputCacheStore store, ILogger logger, CancellationToken cancellationToken) 117private static void Serialize(IBufferWriter<byte> output, OutputCacheEntry entry) 227internal static OutputCacheEntry? Deserialize(ReadOnlyMemory<byte> content) 254var result = new OutputCacheEntry(created, statusCode);
OutputCacheMiddleware.cs (9)
28private readonly WorkDispatcher<string, OutputCacheEntry?> _outputCacheEntryDispatcher; 29private readonly WorkDispatcher<string, OutputCacheEntry?> _requestDispatcher; 145var cacheEntry = await _requestDispatcher.ScheduleAsync(context.CacheKey, key => ExecuteResponseAsync()); 165async Task<OutputCacheEntry?> ExecuteResponseAsync() 261internal async Task<bool> TryServeCachedResponseAsync(OutputCacheContext context, OutputCacheEntry? cacheEntry, IReadOnlyList<IOutputCachePolicy> policies) 280var cachedResponse = context.CachedResponse; 344OutputCacheEntry? cacheEntry; 404var cacheEntry = new OutputCacheEntry(context.ResponseTime!.Value, response.StatusCode) 519var cachedResponse = context.CachedResponse;