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