10 writes to CacheStatusCode
System (10)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (6)
416
ctx.
CacheStatusCode
= resp.StatusCode;
1123
ctx.
CacheStatusCode
= resp.StatusCode;
1134
ctx.
CacheStatusCode
= HttpStatusCode.OK;
1546
ctx.
CacheStatusCode
= HttpStatusCode.OK;
1704
ctx.
CacheStatusCode
= HttpStatusCode.PartialContent;
1718
ctx.
CacheStatusCode
= HttpStatusCode.OK;
net\System\Net\Cache\HttpRequestCacheValidator.cs (4)
312
CacheStatusCode
= (HttpStatusCode) 0;
571
CacheStatusCode
= (HttpStatusCode)0;
629
CacheStatusCode
= (HttpStatusCode)status;
809
CacheStatusCode
= HttpStatusCode.OK;
18 references to CacheStatusCode
System (18)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (7)
310
if (ctx.
CacheStatusCode
== HttpStatusCode.NotModified) {
682
if (ctx.CacheStream == Stream.Null || (int)ctx.
CacheStatusCode
== 0) {
1046
if ((ctx.CacheStream == Stream.Null || (int)ctx.
CacheStatusCode
== 0) && resp.StatusCode == HttpStatusCode.NotModified) {
1272
if (ctx.CacheStream == Stream.Null || ctx.
CacheStatusCode
== (HttpStatusCode)0) {
1276
if (ctx.CacheEntityLength != ctx.CacheEntry.StreamSize || ctx.
CacheStatusCode
== HttpStatusCode.PartialContent) {
1543
if (ctx.
CacheStatusCode
== HttpStatusCode.PartialContent && ctx.CacheEntityLength == ctx.CacheEntry.StreamSize)
1550
if (ctx.CacheEntry.IsPartialEntry || (ctx.CacheEntityLength != -1 && ctx.CacheEntityLength != ctx.CacheEntry.StreamSize) || ctx.
CacheStatusCode
== HttpStatusCode.PartialContent)
net\System\Net\Cache\HttpRequestCacheValidator.cs (9)
223
if ((int)
CacheStatusCode
== 0) {
227
Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_http_status_line, (CacheHttpVersion != null ? CacheHttpVersion.ToString() : "null"), (int)
CacheStatusCode
, CacheStatusDescription));
232
CreateCacheHeaders((int)
CacheStatusCode
!= 0);
258
if (CacheStream == Stream.Null || (int)
CacheStatusCode
== 0 ||
CacheStatusCode
== HttpStatusCode.NotModified)
334
if (CacheStream == Stream.Null || (int)
CacheStatusCode
== 0 ||
CacheStatusCode
== HttpStatusCode.NotModified)
500
sb.Append(((int)
CacheStatusCode
).ToString(NumberFormatInfo.InvariantInfo));
779
if ((forCache?
CacheStatusCode
: resp.StatusCode) != HttpStatusCode.PartialContent) {
net\System\Net\HttpWebRequest.cs (2)
4236
responseData.m_StatusCode = ctx.
CacheStatusCode
;
4298
responseData.m_StatusCode = ctx.
CacheStatusCode
;