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)
75
public string CreateStorageVaryByKey(
ResponseCachingContext
context)
82
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)
246
private bool OnFinalizeCacheHeaders(
ResponseCachingContext
context)
327
internal void FinalizeCacheHeaders(
ResponseCachingContext
context)
335
internal void FinalizeCacheBody(
ResponseCachingContext
context)
372
private bool OnStartResponse(
ResponseCachingContext
context)
384
internal void StartResponse(
ResponseCachingContext
context)
401
internal void ShimResponseStream(
ResponseCachingContext
context)
419
internal static void UnshimResponseStream(
ResponseCachingContext
context)
428
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)