1 instantiation of OutputCacheEntry
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
254var result = new OutputCacheEntry(created, statusCode);
22 references to OutputCacheEntry
Microsoft.AspNetCore.OutputCaching (16)
CacheEntryHelpers.cs (1)
10internal static long EstimateCachedResponseSize(OutputCacheEntry cachedResponse)
OutputCacheContext.cs (1)
73internal OutputCacheEntry? CachedResponse { get; set; }
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 (6)
27private readonly WorkDispatcher<string, OutputCacheEntry?> _outputCacheEntryDispatcher; 28private readonly WorkDispatcher<string, OutputCacheEntry?> _requestDispatcher; 158async Task<OutputCacheEntry?> ExecuteResponseAsync() 253internal async Task<bool> TryServeCachedResponseAsync(OutputCacheContext context, OutputCacheEntry? cacheEntry, IReadOnlyList<IOutputCachePolicy> policies) 343OutputCacheEntry? cacheEntry; 403var cacheEntry = new OutputCacheEntry(context.ResponseTime!.Value, response.StatusCode)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
EndToEndBenchmarks.cs (3)
127var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK) 143var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK) 160var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK)
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCacheEntryFormatterTests.cs (1)
50using (var entry = new OutputCacheEntry(KnownTime, StatusCodes.Status201Created)
OutputCacheMiddlewareTests.cs (2)
107using (var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK) 324using var entry = new OutputCacheEntry(DateTimeOffset.UtcNow, StatusCodes.Status200OK)