7 writes to CachedResponse
Microsoft.AspNetCore.ResponseCaching (2)
ResponseCachingMiddleware.cs (2)
143
context.
CachedResponse
= cachedResponse;
305
context.
CachedResponse
= new CachedResponse
Microsoft.AspNetCore.ResponseCaching.Tests (5)
ResponseCachingMiddlewareTests.cs (5)
700
context.
CachedResponse
= new CachedResponse();
729
context.
CachedResponse
= new CachedResponse();
762
context.
CachedResponse
= new CachedResponse();
787
context.
CachedResponse
= new CachedResponse()
862
context.
CachedResponse
= new CachedResponse() { Headers = new HeaderDictionary() };
10 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);
Microsoft.AspNetCore.ResponseCaching.Tests (2)
ResponseCachingMiddlewareTests.cs (2)
661
Assert.Null(context.
CachedResponse
);
665
Assert.NotNull(context.
CachedResponse
);