9 writes to CacheStreamLength
System (9)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (5)
402
ctx.
CacheStreamLength
= ctx.CacheEntry.StreamSize = ctx.ResponseRangeEnd+1;
1119
ctx.
CacheStreamLength
= ctx.ResponseRangeEnd - ctx.ResponseRangeStart + 1;
1131
ctx.
CacheStreamLength
= ctx.ResponseEntityLength;
1487
ctx.
CacheStreamLength
= end-start+1;
1504
ctx.
CacheStreamLength
= ctx.CacheEntry.StreamSize;
net\System\Net\Cache\FtpRequestCacheValidator.cs (3)
214
CacheStreamLength
= CacheEntry.StreamSize;
301
this.
CacheStreamLength
= resp.ContentLength;
303
this.
CacheStreamLength
= -1;
net\System\Net\Cache\HttpRequestCacheValidator.cs (1)
289
CacheStreamLength
= CacheEntry.StreamSize;
15 references to CacheStreamLength
System (15)
net\System\Net\Cache\_RequestCacheProtocol.cs (9)
345
if (_Validator.CacheStreamOffset != 0L || _Validator.
CacheStreamLength
!= _Validator.CacheEntry.StreamSize)
347
stream = new RangeStream(stream, _Validator.CacheStreamOffset, _Validator.
CacheStreamLength
);
348
if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_returned_range_cache, "ValidateCache()", _Validator.CacheStreamOffset, _Validator.
CacheStreamLength
));
351
_ResponseStreamLength = _Validator.
CacheStreamLength
;
487
if (_Validator.CacheStreamOffset != 0L || _Validator.
CacheStreamLength
!= _Validator.CacheEntry.StreamSize)
489
stream = new RangeStream(stream, _Validator.CacheStreamOffset, _Validator.
CacheStreamLength
);
490
if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_returned_range_cache, "RevalidateCache()", _Validator.CacheStreamOffset, _Validator.
CacheStreamLength
));
493
_ResponseStreamLength = _Validator.
CacheStreamLength
;
518
_ResponseStreamLength = _Validator.
CacheStreamLength
;
net\System\Net\Cache\_Rfc2616CacheValidators.cs (4)
1139
if (ctx.
CacheStreamLength
== -1)
1142
{ctx.CacheHeaders[HttpKnownHeaderNames.ContentLength] = ctx.
CacheStreamLength
.ToString(NumberFormatInfo.InvariantInfo);}
1709
string ranges = "bytes " + rangeStart + '-' + (rangeStart + ctx.
CacheStreamLength
-1) +'/' + (ctx.CacheEntityLength <= 0?"*":ctx.CacheEntityLength.ToString(NumberFormatInfo.InvariantInfo));
1711
ctx.CacheHeaders[HttpKnownHeaderNames.ContentLength] = ctx.
CacheStreamLength
.ToString(NumberFormatInfo.InvariantInfo);
net\System\Net\Cache\FtpRequestCacheValidator.cs (2)
230
if (contentOffset >=
CacheStreamLength
)
504
if (CacheEntry.IsPartialEntry || request.ContentOffset >=
CacheStreamLength
)