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