5 writes to CacheProtocol
System (5)
net\System\Net\FtpWebRequest.cs (2)
1970m_HttpWebRequest.CacheProtocol = CacheProtocol; 1983CacheProtocol = null;
net\System\Net\HttpWebRequest.cs (1)
5214CacheProtocol = null;
net\System\Net\NetWebProxyFinder.cs (1)
250request.CacheProtocol = new RequestCacheProtocol(backupCache, request.CacheProtocol.Validator);
net\System\Net\WebRequest.cs (1)
622CacheProtocol = new RequestCacheProtocol(m_CacheBinding.Cache, m_CacheBinding.Validator.CreateValidator());
81 references to CacheProtocol
System (81)
net\System\Net\_FtpControlStream.cs (10)
564if (request.CacheProtocol != null && request.CacheProtocol.ProtocolStatus == CacheValidationStatus.DoNotTakeFromCache && request.MethodInfo.Operation == FtpOperation.DownloadFile) 570if (request.CacheProtocol == null || request.CacheProtocol.ProtocolStatus != CacheValidationStatus.Continue) 587if (request.CacheProtocol != null && request.CacheProtocol.ProtocolStatus == CacheValidationStatus.CombineCachedAndServerResponse) 590if (request.CacheProtocol.Validator.CacheEntry.StreamSize > 0) 591commandList.Add(new PipelineEntry(FormatFtpCommand("REST", request.CacheProtocol.Validator.CacheEntry.StreamSize.ToString(CultureInfo.InvariantCulture)))); 609if (request.CacheProtocol == null || request.CacheProtocol.ProtocolStatus != CacheValidationStatus.Continue)
net\System\Net\FtpWebRequest.cs (38)
1390(CacheProtocol.ProtocolStatus == CacheValidationStatus.Continue || CacheProtocol.ProtocolStatus == CacheValidationStatus.RetryResponseFromServer); 1506(CacheProtocol.ProtocolStatus == CacheValidationStatus.Continue || CacheProtocol.ProtocolStatus == CacheValidationStatus.RetryResponseFromServer); 1691if (CacheProtocol != null) 1692CacheProtocol.Abort(); 1970m_HttpWebRequest.CacheProtocol = CacheProtocol; 2029if (CacheProtocol == null || m_CacheDone) { 2034if (CacheProtocol.ProtocolStatus == CacheValidationStatus.CombineCachedAndServerResponse || 2035CacheProtocol.ProtocolStatus == CacheValidationStatus.DoNotTakeFromCache) 2058CacheProtocol.GetRetrieveStatus(cacheUri, this); 2060if (CacheProtocol.ProtocolStatus == CacheValidationStatus.Fail) { 2061throw CacheProtocol.ProtocolException; 2064if (CacheProtocol.ProtocolStatus != CacheValidationStatus.ReturnCachedResponse) { 2072if (CacheProtocol.ProtocolStatus == CacheValidationStatus.ReturnCachedResponse) 2076FtpRequestCacheValidator ctx = (FtpRequestCacheValidator) CacheProtocol.Validator; 2077m_FtpWebResponse = new FtpWebResponse(CacheProtocol.ResponseStream, 2078CacheProtocol.ResponseStreamLength, 2101if (CacheProtocol == null || m_CacheDone) { 2105if (CacheProtocol.ProtocolStatus != CacheValidationStatus.Continue) 2111if (CacheProtocol.ProtocolStatus == CacheValidationStatus.Fail) { 2112if(Logging.On)Logging.Exception(Logging.Web, this, "CheckCacheRetrieveOnResponse", CacheProtocol.ProtocolException); 2113throw CacheProtocol.ProtocolException; 2117CacheProtocol.GetRevalidateStatus(m_FtpWebResponse, null); 2119if (CacheProtocol.ProtocolStatus == CacheValidationStatus.RetryResponseFromServer) 2127if (CacheProtocol.ProtocolStatus != CacheValidationStatus.ReturnCachedResponse) 2140FtpRequestCacheValidator ctx = (FtpRequestCacheValidator) CacheProtocol.Validator; 2143m_Stream = CacheProtocol.ResponseStream; 2144m_FtpWebResponse = new FtpWebResponse(CacheProtocol.ResponseStream, 2145CacheProtocol.ResponseStreamLength, 2155m_FtpWebResponse.InternalSetIsCacheFresh = CacheProtocol.IsCacheFresh; 2168if (CacheProtocol == null || m_CacheDone) { 2180if (CacheProtocol.ProtocolStatus == CacheValidationStatus.CombineCachedAndServerResponse) 2184m_Stream = new CombinedReadStream(CacheProtocol.Validator.CacheStream, m_FtpWebResponse.GetResponseStream()); 2194if (CacheProtocol.GetUpdateStatus(m_FtpWebResponse, m_FtpWebResponse.GetResponseStream()) == CacheValidationStatus.UpdateResponseInformation) 2196m_Stream = CacheProtocol.ResponseStream; 2199else if (CacheProtocol.ProtocolStatus == CacheValidationStatus.Fail) 2200throw CacheProtocol.ProtocolException;
net\System\Net\HttpWebRequest.cs (30)
1855if (CacheProtocol != null && _HttpResponse != null) 1856CacheProtocol.Reset(); 3971if (CacheProtocol != null) 3973CacheProtocol.Abort(); //never throws 4207if (CacheProtocol == null) { 4217CacheProtocol.GetRetrieveStatus(cacheUri, this); 4219if (CacheProtocol.ProtocolStatus == CacheValidationStatus.Fail) { 4220throw CacheProtocol.ProtocolException; 4223if (CacheProtocol.ProtocolStatus != CacheValidationStatus.ReturnCachedResponse) { 4233HttpRequestCacheValidator ctx = (HttpRequestCacheValidator) CacheProtocol.Validator; 4239responseData.m_ContentLength = CacheProtocol.ResponseStreamLength; 4240responseData.m_ConnectStream = CacheProtocol.ResponseStream; 4264if (CacheProtocol == null) { 4268if (CacheProtocol.ProtocolStatus == CacheValidationStatus.Fail) { 4269throw CacheProtocol.ProtocolException; 4274CacheProtocol.GetRevalidateStatus(_HttpResponse, _HttpResponse.ResponseStream); 4276if (CacheProtocol.ProtocolStatus == CacheValidationStatus.RetryResponseFromServer) 4282if (CacheProtocol.ProtocolStatus != CacheValidationStatus.ReturnCachedResponse && 4283CacheProtocol.ProtocolStatus != CacheValidationStatus.CombineCachedAndServerResponse) 4295HttpRequestCacheValidator ctx = (HttpRequestCacheValidator) CacheProtocol.Validator; 4301responseData.m_ResponseHeaders = CacheProtocol.ProtocolStatus == CacheValidationStatus.CombineCachedAndServerResponse 4305responseData.m_ContentLength = CacheProtocol.ResponseStreamLength; 4306responseData.m_ConnectStream = CacheProtocol.ResponseStream; 4311if (CacheProtocol.ProtocolStatus == CacheValidationStatus.ReturnCachedResponse) 4314_HttpResponse.InternalSetIsCacheFresh = CacheProtocol.IsCacheFresh; 4342if (CacheProtocol == null) { 4346if (CacheProtocol.GetUpdateStatus(_HttpResponse, _HttpResponse.ResponseStream) == CacheValidationStatus.UpdateResponseInformation) 4348_HttpResponse.ResponseStream = CacheProtocol.ResponseStream; 4350else if (CacheProtocol.ProtocolStatus == CacheValidationStatus.Fail) 4351throw CacheProtocol.ProtocolException;
net\System\Net\NetWebProxyFinder.cs (2)
247if (request.CacheProtocol != null) 250request.CacheProtocol = new RequestCacheProtocol(backupCache, request.CacheProtocol.Validator);
net\System\Net\WebRequest.cs (1)
618CacheProtocol == null &&