4 writes to CacheEntityLength
System (4)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (3)
401
ctx.
CacheEntityLength
= ctx.ResponseEntityLength;
1121
ctx.
CacheEntityLength
= ctx.ResponseEntityLength;
1132
ctx.
CacheEntityLength
= ctx.ResponseEntityLength;
net\System\Net\Cache\HttpRequestCacheValidator.cs (1)
815
CacheEntityLength
= totalLength;
17 references to CacheEntityLength
System (17)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (17)
403
if (ctx.
CacheEntityLength
> 0 && ctx.
CacheEntityLength
== ctx.CacheEntry.StreamSize)
1063
if (ctx.ResponseEntityLength != -1 && ctx.ResponseEntityLength != ctx.
CacheEntityLength
) {
1276
if (ctx.
CacheEntityLength
!= ctx.CacheEntry.StreamSize || ctx.CacheStatusCode == HttpStatusCode.PartialContent) {
1467
|| (end == -1 && ctx.
CacheEntityLength
== -1)
1468
|| (end == -1 && ctx.
CacheEntityLength
> ctx.CacheEntry.StreamSize)
1470
|| ctx.
CacheEntityLength
== -1
1471
|| (ctx.
CacheEntityLength
- end >= ctx.CacheEntry.StreamSize))))
1479
start = ctx.
CacheEntityLength
- end;
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)
1552
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_could_be_partial, ctx.CacheEntry.StreamSize, ctx.
CacheEntityLength
));
1709
string ranges = "bytes " + rangeStart + '-' + (rangeStart + ctx.CacheStreamLength-1) +'/' + (ctx.
CacheEntityLength
<= 0?"*":ctx.
CacheEntityLength
.ToString(NumberFormatInfo.InvariantInfo));
1725
if (ctx.
CacheEntityLength
== -1)
1728
{ctx.CacheHeaders[HttpKnownHeaderNames.ContentLength] = ctx.
CacheEntityLength
.ToString(NumberFormatInfo.InvariantInfo);}