5 writes to StreamSize
System (5)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (2)
402ctx.CacheStreamLength = ctx.CacheEntry.StreamSize = ctx.ResponseRangeEnd+1; 418ctx.CacheEntry.StreamSize = resp.ContentLength;
net\System\Net\Cache\_SingleItemRequestCache.cs (2)
52StreamSize = entry.StreamSize; 211requestCacheEntry.StreamSize = contentLength;
net\System\Net\Cache\FtpRequestCacheValidator.cs (1)
468CacheEntry.StreamSize = ResponseEntityLength; //This is passed down to cache on what size to expect
34 references to StreamSize
System (34)
net\System\Net\_FtpControlStream.cs (2)
590if (request.CacheProtocol.Validator.CacheEntry.StreamSize > 0) 591commandList.Add(new PipelineEntry(FormatFtpCommand("REST", request.CacheProtocol.Validator.CacheEntry.StreamSize.ToString(CultureInfo.InvariantCulture))));
net\System\Net\Cache\_RequestCacheProtocol.cs (4)
345if (_Validator.CacheStreamOffset != 0L || _Validator.CacheStreamLength != _Validator.CacheEntry.StreamSize) 487if (_Validator.CacheStreamOffset != 0L || _Validator.CacheStreamLength != _Validator.CacheEntry.StreamSize) 615{stream = _RequestCache.Store(_Validator.CacheKey, _Validator.CacheEntry.StreamSize, _Validator.CacheEntry.ExpiresUtc, _Validator.CacheEntry.LastModifiedUtc, _Validator.CacheEntry.MaxStale, _Validator.CacheEntry.EntryMetadata, _Validator.CacheEntry.SystemMetadata);} 617{_RequestCache.TryStore(_Validator.CacheKey, _Validator.CacheEntry.StreamSize, _Validator.CacheEntry.ExpiresUtc, _Validator.CacheEntry.LastModifiedUtc, _Validator.CacheEntry.MaxStale, _Validator.CacheEntry.EntryMetadata, _Validator.CacheEntry.SystemMetadata, out stream);}
net\System\Net\Cache\_Rfc2616CacheValidators.cs (21)
384if (ctx.CacheEntry.StreamSize != ctx.ResponseRangeStart && ctx.ResponseRangeStart != 0) 386if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_partial_resp_not_combined_with_existing_entry, ctx.CacheEntry.StreamSize, ctx.ResponseRangeStart)); 403if (ctx.CacheEntityLength > 0 && ctx.CacheEntityLength == ctx.CacheEntry.StreamSize) 1106if (ctx.CacheEntry.StreamSize != ctx.ResponseRangeStart) { 1117ctx.CacheStreamOffset = ctx.CacheEntry.StreamSize; 1276if (ctx.CacheEntityLength != ctx.CacheEntry.StreamSize || ctx.CacheStatusCode == HttpStatusCode.PartialContent) { 1429((HttpWebRequest)ctx.Request).AddRange((int)ctx.CacheEntry.StreamSize); 1465if (start >= ctx.CacheEntry.StreamSize 1466|| end > ctx.CacheEntry.StreamSize 1468|| (end == -1 && ctx.CacheEntityLength > ctx.CacheEntry.StreamSize) 1471|| (ctx.CacheEntityLength - end >= ctx.CacheEntry.StreamSize)))) 1483end = ctx.CacheEntry.StreamSize - 1; 1504ctx.CacheStreamLength = ctx.CacheEntry.StreamSize; 1511if (ctx.CacheEntry.StreamSize >= Int32.MaxValue) { 1512if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_entry_size_too_big, ctx.CacheEntry.StreamSize)); 1518((HttpWebRequest)ctx.Request).AddRange((int)ctx.CacheEntry.StreamSize); 1543if (ctx.CacheStatusCode == HttpStatusCode.PartialContent && ctx.CacheEntityLength == ctx.CacheEntry.StreamSize) 1550if (ctx.CacheEntry.IsPartialEntry || (ctx.CacheEntityLength != -1 && ctx.CacheEntityLength != ctx.CacheEntry.StreamSize) || ctx.CacheStatusCode == HttpStatusCode.PartialContent) 1552if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_could_be_partial, ctx.CacheEntry.StreamSize, ctx.CacheEntityLength)); 1636if (ctx.CacheEntry.StreamSize >= Int32.MaxValue) { 1638if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_entry_size_too_big, ctx.CacheEntry.StreamSize));
net\System\Net\Cache\_SingleItemRequestCache.cs (1)
52StreamSize = entry.StreamSize;
net\System\Net\Cache\FtpRequestCacheValidator.cs (3)
214CacheStreamLength = CacheEntry.StreamSize; 285if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_cache_last_modified, CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture), CacheEntry.StreamSize)); 307else if (resp.ContentLength == CacheEntry.StreamSize)
net\System\Net\Cache\HttpRequestCacheValidator.cs (2)
289CacheStreamLength = CacheEntry.StreamSize; 804else if (forCache && totalLength == CacheEntry.StreamSize)
net\System\Net\Cache\RequestCacheEntry.cs (1)
89sb.Append("\r\nStreamSize = ").Append(StreamSize);