1 instantiation of ResponseCachingContext
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
87
var 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>
13
string CreateBaseKey(
ResponseCachingContext
context);
18
/// <param name="context">The <see cref="
ResponseCachingContext
"/>.</param>
20
string CreateStorageVaryByKey(
ResponseCachingContext
context);
25
/// <param name="context">The <see cref="
ResponseCachingContext
"/>.</param>
27
IEnumerable<string> CreateLookupVaryByKeys(
ResponseCachingContext
context);
Interfaces\IResponseCachingPolicyProvider.cs (10)
11
/// <param name="context">The <see cref="
ResponseCachingContext
"/>.</param>
13
bool AttemptResponseCaching(
ResponseCachingContext
context);
18
/// <param name="context">The <see cref="
ResponseCachingContext
"/>.</param>
20
bool AllowCacheLookup(
ResponseCachingContext
context);
25
/// <param name="context">The <see cref="
ResponseCachingContext
"/>.</param>
27
bool AllowCacheStorage(
ResponseCachingContext
context);
32
/// <param name="context">The <see cref="
ResponseCachingContext
"/>.</param>
34
bool IsResponseCacheable(
ResponseCachingContext
context);
39
/// <param name="context">The <see cref="
ResponseCachingContext
"/>.</param>
41
bool IsCachedEntryFresh(
ResponseCachingContext
context);
ResponseCachingKeyProvider.cs (4)
31
public IEnumerable<string> CreateLookupVaryByKeys(
ResponseCachingContext
context)
37
public string CreateBaseKey(
ResponseCachingContext
context)
79
public string CreateStorageVaryByKey(
ResponseCachingContext
context)
86
throw new InvalidOperationException($"{nameof(CachedVaryByRules)} must not be null on the {nameof(
ResponseCachingContext
)}");
ResponseCachingMiddleware.cs (11)
87
var
context = new ResponseCachingContext(httpContext, _logger);
136
internal async Task<bool> TryServeCachedResponseAsync(
ResponseCachingContext
context, IResponseCacheEntry? cacheEntry)
204
internal async Task<bool> TryServeFromCacheAsync(
ResponseCachingContext
context)
263
private bool OnFinalizeCacheHeaders(
ResponseCachingContext
context)
364
internal void FinalizeCacheHeaders(
ResponseCachingContext
context)
372
internal void FinalizeCacheBody(
ResponseCachingContext
context)
409
private bool OnStartResponse(
ResponseCachingContext
context)
421
internal void StartResponse(
ResponseCachingContext
context)
438
internal void ShimResponseStream(
ResponseCachingContext
context)
456
internal static void UnshimResponseStream(
ResponseCachingContext
context)
465
internal static bool ContentIsNotModified(
ResponseCachingContext
context)
ResponseCachingPolicyProvider.cs (5)
12
public bool AttemptResponseCaching(
ResponseCachingContext
context)
33
public bool AllowCacheLookup(
ResponseCachingContext
context)
60
public bool AllowCacheStorage(
ResponseCachingContext
context)
66
public bool IsResponseCacheable(
ResponseCachingContext
context)
166
public bool IsCachedEntryFresh(
ResponseCachingContext
context)