2 writes to CachedResponse
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingMiddleware.cs (2)
143
context.
CachedResponse
= cachedResponse;
305
context.
CachedResponse
= new CachedResponse
8 references to CachedResponse
Microsoft.AspNetCore.ResponseCaching (8)
ResponseCachingMiddleware.cs (8)
146
var cachedEntryAge = context.ResponseTime.Value - context.
CachedResponse
.Created;
172
response.StatusCode = context.
CachedResponse
.StatusCode;
173
foreach (var header in context.
CachedResponse
.Headers)
184
var body = context.
CachedResponse
.Body;
316
context.
CachedResponse
.Headers[header.Key] = header.Value;
349
context.
CachedResponse
.Headers.ContentLength = cachedResponseBody.Length;
352
context.
CachedResponse
.Body = cachedResponseBody;
354
_cache.Set(context.StorageVaryKey ?? context.BaseKey, context.
CachedResponse
, context.CachedResponseValidFor);