1 instantiation of ResponseCachingContext
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
87var context = new ResponseCachingContext(httpContext, _logger);
36 references to ResponseCachingContext
Microsoft.AspNetCore.ResponseCaching (36)
Interfaces\IResponseCachingKeyProvider.cs (6)
11/// <param name="context">The <see cref="ResponseCachingContext"/>.</param> 13string CreateBaseKey(ResponseCachingContext context); 18/// <param name="context">The <see cref="ResponseCachingContext"/>.</param> 20string CreateStorageVaryByKey(ResponseCachingContext context); 25/// <param name="context">The <see cref="ResponseCachingContext"/>.</param> 27IEnumerable<string> CreateLookupVaryByKeys(ResponseCachingContext context);
Interfaces\IResponseCachingPolicyProvider.cs (10)
11/// <param name="context">The <see cref="ResponseCachingContext"/>.</param> 13bool AttemptResponseCaching(ResponseCachingContext context); 18/// <param name="context">The <see cref="ResponseCachingContext"/>.</param> 20bool AllowCacheLookup(ResponseCachingContext context); 25/// <param name="context">The <see cref="ResponseCachingContext"/>.</param> 27bool AllowCacheStorage(ResponseCachingContext context); 32/// <param name="context">The <see cref="ResponseCachingContext"/>.</param> 34bool IsResponseCacheable(ResponseCachingContext context); 39/// <param name="context">The <see cref="ResponseCachingContext"/>.</param> 41bool IsCachedEntryFresh(ResponseCachingContext context);
ResponseCachingKeyProvider.cs (4)
31public IEnumerable<string> CreateLookupVaryByKeys(ResponseCachingContext context) 37public string CreateBaseKey(ResponseCachingContext context) 75public string CreateStorageVaryByKey(ResponseCachingContext context) 82throw new InvalidOperationException($"{nameof(CachedVaryByRules)} must not be null on the {nameof(ResponseCachingContext)}");
ResponseCachingMiddleware.cs (11)
87var context = new ResponseCachingContext(httpContext, _logger); 136internal async Task<bool> TryServeCachedResponseAsync(ResponseCachingContext context, IResponseCacheEntry? cacheEntry) 204internal async Task<bool> TryServeFromCacheAsync(ResponseCachingContext context) 246private bool OnFinalizeCacheHeaders(ResponseCachingContext context) 327internal void FinalizeCacheHeaders(ResponseCachingContext context) 335internal void FinalizeCacheBody(ResponseCachingContext context) 372private bool OnStartResponse(ResponseCachingContext context) 384internal void StartResponse(ResponseCachingContext context) 401internal void ShimResponseStream(ResponseCachingContext context) 419internal static void UnshimResponseStream(ResponseCachingContext context) 428internal static bool ContentIsNotModified(ResponseCachingContext context)
ResponseCachingPolicyProvider.cs (5)
12public bool AttemptResponseCaching(ResponseCachingContext context) 33public bool AllowCacheLookup(ResponseCachingContext context) 60public bool AllowCacheStorage(ResponseCachingContext context) 66public bool IsResponseCacheable(ResponseCachingContext context) 166public bool IsCachedEntryFresh(ResponseCachingContext context)