244 references to RequestCache
System (244)
net\System\Net\Cache\_RequestCacheProtocol.cs (37)
96
if(Logging.On) Logging.Enter(Logging.
RequestCache
, this, "GetRetrieveStatus", request);
128
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_unexpected_status, "ValidateRequest()", _Validator.ValidationStatus.ToString()));
146
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString())));
149
if(Logging.On) Logging.Exit(Logging.
RequestCache
, this, "GetRetrieveStatus", "result = " + _ProtocolStatus.ToString());
173
if(Logging.On) Logging.Enter(Logging.
RequestCache
, this, "GetRevalidateStatus", (_Validator == null? null: _Validator.Request));
179
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_revalidation_not_needed, "GetRevalidateStatus()"));
185
if(Logging.On) Logging.Exit(Logging.
RequestCache
, this, "GetRevalidateStatus", "result = " + _ProtocolStatus.ToString());
203
if(Logging.On) Logging.Enter(Logging.
RequestCache
, this, "GetUpdateStatus", null);
218
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_not_updated_based_on_cache_protocol_status, "GetUpdateStatus()", _ProtocolStatus.ToString()));
230
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString())));
233
if(Logging.On)Logging.Exit(Logging.
RequestCache
, this, "GetUpdateStatus", "result = " + _ProtocolStatus.ToString());
258
if(Logging.On) Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_closing_cache_stream, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), "Abort()", stream.GetType().FullName, _Validator.CacheKey));
269
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_exception_ignored, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), "stream.Close()", e.ToString()));
334
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_no_cache_entry, "ValidateCache()"));
348
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_returned_range_cache, "ValidateCache()", _Validator.CacheStreamOffset, _Validator.CacheStreamLength));
374
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_unexpected_status, "ValidateCache()", _Validator.ValidationStatus.ToString()));
386
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString())));
429
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_unexpected_status, "ValidateResponse()", _Validator.ValidationStatus.ToString()));
441
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString())));
481
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_null_cached_stream, "RevalidateCache()"));
490
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_returned_range_cache, "RevalidateCache()", _Validator.CacheStreamOffset, _Validator.CacheStreamLength));
502
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_requested_combined_but_null_cached_stream, "RevalidateCache()"));
531
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_unexpected_status, "RevalidateCache()", _Validator.ValidationStatus.ToString()));
542
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString())));
639
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_unexpected_status, "UpdateCache()", _Validator.ValidationStatus.ToString()));
654
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
,
662
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, "Selected cache Key = " + _Validator.CacheKey);
673
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_entry_not_found_freshness_undefined, "ValidateFreshness()"));
679
if (Logging.IsVerbose(Logging.
RequestCache
)) {
680
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_dumping_cache_context));
683
Logging.PrintInfo(Logging.
RequestCache
, "<null>");
686
string[] context = fetchEntry.ToString(Logging.IsVerbose(Logging.
RequestCache
)).Split(RequestCache.LineSplits);
690
Logging.PrintInfo(Logging.
RequestCache
, context[i]);
701
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_result, "ValidateFreshness()", result.ToString()));
711
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_result, "ValidateCache()", result.ToString()));
720
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_result, "RevalidateCache()", result.ToString()));
730
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_result, "ValidateResponse()", result.ToString()));
net\System\Net\Cache\_Rfc2616CacheValidators.cs (96)
132
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_uri_with_query_has_no_expiration));
136
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_uri_with_query_and_cached_resp_from_http_10));
194
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_valid_as_fresh_or_because_policy, ctx.Policy.ToString()));
214
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_accept_based_on_retry_count, ctx.ResponseCount));
228
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_date_header_older_than_cache_entry));
236
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_server_didnt_satisfy_range, ctx.Request.Headers[HttpKnownHeaderNames.Range]));
247
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_304_received_on_unconditional_request));
254
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_304_received_on_unconditional_request_expected_200_206));
264
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_last_modified_header_older_than_cache_entry));
278
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_freshness_outside_policy_limits));
311
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_need_to_remove_invalid_cache_entry_304));
316
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_status, resp.StatusCode));
362
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_304_or_request_head));
364
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_dont_update_cached_headers));
377
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_update_cached_headers));
386
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_partial_resp_not_combined_with_existing_entry, ctx.CacheEntry.StreamSize, ctx.ResponseRangeStart));
482
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_request_contains_conditional_header));
501
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_now_time, DateTime.UtcNow.ToString("r", CultureInfo.InvariantCulture)));
514
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_age1_date_header, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheDate.ToString("r", CultureInfo.InvariantCulture)));
526
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_age1_last_synchronized_age_header, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture), ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
528
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_age1_last_synchronized, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
536
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_age2, ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
567
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_max_age_cache_s_max_age, ((int)ctx.CacheMaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
581
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_max_age_cache_max_age, ((int)ctx.CacheMaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
605
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_max_age_expires_date, ((int)((expiresDate - date).TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo), expiresDate.ToString("r", CultureInfo.InvariantCulture)));
616
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_max_age_absolute, expiresDate.ToString("r", CultureInfo.InvariantCulture)));
649
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_no_max_age_use_10_percent, maxAgeSeconds.ToString(NumberFormatInfo.InvariantInfo), lastModifiedDate.ToString("r", CultureInfo.InvariantCulture)));
658
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_no_max_age_use_default, ((int)(ctx.UnspecifiedMaxAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo)));
677
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_not_a_get_head_post));
685
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cannot_update_cache_if_304));
690
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cannot_update_cache_with_head_resp));
697
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_http_resp_is_null));
712
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_cache_control_is_no_store));
736
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_older_than_cache));
749
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_cache_control_is_public));
769
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_cache_control_is_private));
772
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_cache_control_is_private_plus_headers));
792
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_revalidation_required));
795
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_needs_revalidation));
800
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_allows_caching, ctx.ResponseCacheControl.ToString()));
818
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_auth_header_and_no_s_max_age));
828
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_post_resp_without_cache_control_or_expires));
850
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_valid_based_on_status_code, (int)resp.StatusCode));
865
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_no_cache_control, (int)resp.StatusCode));
883
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_age, (ctx.CacheAge != TimeSpan.MinValue ? ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo) : SR.GetString(SR.net_log_unknown)), (ctx.CacheMaxAge != TimeSpan.MinValue? ((int)ctx.CacheMaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo): SR.GetString(SR.net_log_unknown))));
887
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_policy_min_fresh, ((int)ctx.Policy.MinFresh.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
893
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_policy_max_age, ((int)ctx.Policy.MaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
899
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_policy_cache_sync_date, ctx.Policy.InternalCacheSyncDateUtc.ToString("r", CultureInfo.CurrentCulture), ctx.CacheEntry.LastSynchronizedUtc.ToString(CultureInfo.CurrentCulture)));
908
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_policy_max_stale, ((int)ctx.Policy.MaxStale.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo)));
950
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_control_no_cache));
962
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_control_no_cache_removing_some_headers));
988
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_control_must_revalidate));
1020
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cached_auth_header));
1025
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cached_auth_header_no_control_directive));
1044
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_after_validation));
1047
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_status_304));
1064
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_head_resp_has_different_content_length));
1068
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_head_resp_has_different_content_md5));
1072
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_head_resp_has_different_etag));
1077
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_304_head_resp_has_different_last_modified));
1081
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_existing_entry_has_to_be_discarded));
1099
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_206_resp_non_matching_entry));
1100
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_existing_entry_should_be_discarded));
1107
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_206_resp_starting_position_not_adjusted));
1146
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_combined_resp_requested));
1189
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_updating_headers_on_304));
1243
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_suppressing_headers_update_on_304));
1253
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_status_code_not_304_206));
1291
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_sxx_resp_cache_only));
1298
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_sxx_resp_can_be_replaced));
1344
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_vary_header_empty));
1349
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_vary_header_contains_asterisks));
1355
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_no_headers_in_metadata));
1388
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_vary_header_mismatched_count, (string)varyValues[i]));
1395
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_vary_header_mismatched_field, (string)varyValues[i], (string)cacheFields[j], (string)requestFields[j]));
1400
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_vary_header_match));
1430
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_range, ctx.Request.Headers[HttpKnownHeaderNames.Range]));
1461
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_range_invalid_format, ranges));
1474
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_range_not_in_cache, ranges));
1490
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_range_in_cache, ctx.CacheHeaders[HttpKnownHeaderNames.ContentRange]));
1507
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_partial_resp, ctx.CacheHeaders[HttpKnownHeaderNames.ContentRange]));
1512
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_entry_size_too_big, ctx.CacheEntry.StreamSize));
1519
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_range, ctx.Request.Headers[HttpKnownHeaderNames.Range]));
1539
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_range_request_range, ctx.Request.Headers[HttpKnownHeaderNames.Range]));
1552
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_could_be_partial, ctx.CacheEntry.StreamSize, ctx.CacheEntityLength));
1600
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_condition_if_none_match, ctx.Request.Headers[HttpKnownHeaderNames.IfNoneMatch]));
1615
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_condition_if_modified_since, ctx.Request.Headers[HttpKnownHeaderNames.IfModifiedSince]));
1620
Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cannot_construct_conditional_request));
1638
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_entry_size_too_big, ctx.CacheEntry.StreamSize));
1654
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_condition_if_range, ctx.Request.Headers[HttpKnownHeaderNames.IfRange]));
1672
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_conditional_range_not_implemented_on_http_10));
1689
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_condition_if_range, ctx.Request.Headers[HttpKnownHeaderNames.IfRange]));
1694
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cannot_construct_conditional_range_request));
1786
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_saving_request_headers, resp.Headers[HttpKnownHeaderNames.Vary]));
1885
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_only_byte_range_implemented));
1937
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_multiple_complex_range_not_implemented));
net\System\Net\Cache\FtpRequestCacheValidator.cs (31)
72
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_ftp_proxy_doesnt_support_partial));
80
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_ftp_method, method));
103
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_ftp_supports_bin_only));
124
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_replacing_entry_with_HTTP_200));
138
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_now_time, nowDate.ToString("r", CultureInfo.InvariantCulture)));
144
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_max_age_absolute, CacheEntry.ExpiresUtc.ToString("r", CultureInfo.InvariantCulture)));
156
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_age1, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
166
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_no_max_age_use_10_percent, maxAgeSeconds.ToString(NumberFormatInfo.InvariantInfo), CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture)));
174
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_no_max_age_use_default, ((int)(UnspecifiedMaxAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo)));
194
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_validator_invalid_for_policy, Policy.ToString()));
259
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_validator_invalid_for_policy, Policy.ToString()));
284
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_response_last_modified, resp.LastModified.ToUniversalTime().ToString("r", CultureInfo.InvariantCulture), resp.ContentLength));
285
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cache_last_modified, CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture), CacheEntry.StreamSize));
290
if(Logging.On) Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_partial_and_non_zero_content_offset, CacheStreamOffset.ToString(CultureInfo.InvariantCulture)));
340
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_response_valid_based_on_policy, Policy.ToString()));
347
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_null_response_failure));
351
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_ftp_response_status, ((int)resp.StatusCode).ToString(CultureInfo.InvariantCulture), resp.StatusCode.ToString()));
355
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_resp_valid_based_on_retry, ResponseCount));
379
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_not_updated_based_on_policy, Request.Method));
384
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_removed_existing_invalid_entry));
389
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_not_updated_based_on_policy, Policy.ToString()));
397
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_not_updated_because_no_response));
412
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_removed_existing_based_on_method, Request.Method));
415
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_existing_not_removed_because_unexpected_response_status, (int)resp.StatusCode, resp.StatusCode.ToString()));
420
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_removed_existing_based_on_policy, Policy.ToString()));
434
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_not_updated_based_on_ftp_response_status, FtpStatusCode.OpeningData.ToString() + "|" + FtpStatusCode.DataAlreadyOpen.ToString() + "|" + FtpStatusCode.ClosingData.ToString(), resp.StatusCode.ToString()));
441
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_update_not_supported_for_ftp_restart, ((FtpWebRequest)Request).ContentOffset.ToString(CultureInfo.InvariantCulture)));
444
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_removed_entry_because_ftp_restart_response_changed, CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture), resp.LastModified.ToUniversalTime().ToString("r", CultureInfo.InvariantCulture)));
476
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_last_synchronized, CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
481
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_suppress_update_because_synched_last_minute));
490
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_updating_last_synchronized, CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture)));
net\System\Net\Cache\HttpRequestCacheValidator.cs (17)
193
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_request_method, method));
224
Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_http_status_parse_failure, (s == null ? "null" : s)));
227
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_http_status_line, (CacheHttpVersion != null ? CacheHttpVersion.ToString() : "null"), (int)CacheStatusCode, CacheStatusDescription));
238
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cache_control, CacheCacheControl.ToString()));
252
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_validator_invalid_for_policy, Policy.ToString()));
328
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_validator_invalid_for_policy, Policy.ToString()));
410
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_response_valid_based_on_policy, Policy.ToString()));
417
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_null_response_failure));
422
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, "StatusCode=" + ((int)resp.StatusCode).ToString(CultureInfo.InvariantCulture) + ' ' +resp.StatusCode.ToString() +
444
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_removed_existing_based_on_policy, Policy.ToString()));
448
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_not_updated_based_on_policy, Policy.ToString()));
492
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_invalid_http_version));
641
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_no_http_response_header));
648
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_http_header_parse_error, s));
666
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_metadata_name_value_parse_error, s));
801
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_content_range_error, (s==null ? "<null>" : s)));
895
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cache_control_error, s));
net\System\Net\Cache\IERequestCache.cs (62)
124
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_operation_failed_with_error, "WinInetCache.Remove()", SR.GetString(SR.net_cache_access_denied, "Write")));
132
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_cannot_remove, "WinInetCache.Remove()", key, win32Exception.Message));
136
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.Remove(), ", key, entry.Error.ToString()));
157
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_operation_failed_with_error, "WinInetCache.TryRemove()", SR.GetString(SR.net_cache_access_denied, "Write")));
164
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.Error.ToString()));
168
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_key_remove_failed_status, "WinInetCache.TryRemove()", key, entry.Error.ToString()));
175
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.Error.ToString()));
176
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_usecount_file, "WinInetCache.TryRemove()", entry.Info.UseCount, entry.Filename));
187
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.Error.ToString()));
213
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_stream, "WinInetCache.UnlockEntry", (stream == null ? "<null>" : stream.GetType().FullName)));
225
if(Logging.On) Logging.Enter(Logging.
RequestCache
, "WinInetCache.Retrieve", "key = " + key);
238
if(Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_filename, "WinInetCache.Retrieve()", entry.Filename, entry.Error));
315
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_lookup_failed, "WinInetCache.Retrieve()", new Win32Exception((int)entry.Error).Message));
316
if(Logging.On)Logging.Exit(Logging.
RequestCache
, "WinInetCache.Retrieve()");
331
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_exception, "WinInetCache.Retrieve()", exception.ToString()));
332
if(Logging.On)Logging.Exit(Logging.
RequestCache
, "WinInetCache.Retrieve()");
347
if(Logging.On)Logging.Exit(Logging.
RequestCache
, "WinInetCache.Retrieve()", "Status = " + entry.Error.ToString());
385
if(Logging.On) Logging.Enter(Logging.
RequestCache
, "WinInetCache.Store()", "Key = " + key);
393
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_operation_failed_with_error, "WinInetCache.Store()", SR.GetString(SR.net_cache_access_denied, "Write")));
394
if(Logging.On) Logging.Exit(Logging.
RequestCache
, "WinInetCache.Store");
432
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_expected_length, entry.OptionalLength));
433
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_last_modified, (entry.Info.LastModifiedTime.IsNull? "0": DateTime.FromFileTimeUtc(entry.Info.LastModifiedTime.ToLong()).ToString("r"))));
434
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_expires, (entry.Info.ExpireTime.IsNull? "0": DateTime.FromFileTimeUtc(entry.Info.ExpireTime.ToLong()).ToString("r"))));
435
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_max_stale, (maxStale > TimeSpan.Zero? ((int)maxStale.TotalSeconds).ToString():"n/a")));
436
if (Logging.IsVerbose(Logging.
RequestCache
)) {
437
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_dumping_metadata));
439
Logging.PrintInfo(Logging.
RequestCache
, "<null>");
445
Logging.PrintInfo(Logging.
RequestCache
, s.TrimEnd(LineSplits));
448
Logging.PrintInfo(Logging.
RequestCache
, "------");
452
Logging.PrintInfo(Logging.
RequestCache
, s.TrimEnd(LineSplits));
465
Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_create_failed, new Win32Exception((int)entry.Error).Message));
466
Logging.Exit(Logging.
RequestCache
, "WinInetCache.Store");
487
Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_exception, "WinInetCache.Store()", exception));
488
Logging.Exit(Logging.
RequestCache
, "WinInetCache.Store");
497
if(Logging.On) Logging.Exit(Logging.
RequestCache
, "WinInetCache.Store", "Filename = " + entry.Filename);
508
if(Logging.On) Logging.Enter(Logging.
RequestCache
, "WinInetCache.Update", "Key = "+ key);
512
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_operation_failed_with_error, "WinInetCache.Update()", SR.GetString(SR.net_cache_access_denied, "Write")));
513
if(Logging.On) Logging.Exit(Logging.
RequestCache
, "WinInetCache.Update()");
527
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_set_expires, expiresUtc.ToString("r")));
533
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_set_last_modified, lastModifiedUtc.ToString("r")));
539
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_set_last_synchronized, lastSynchronizedUtc.ToString("r")));
551
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_enable_max_stale, ((int)maxStale.TotalSeconds).ToString()));
555
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_disable_max_stale));
564
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_dumping));
565
if (Logging.IsVerbose(Logging.
RequestCache
)) {
566
Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_dumping));
570
Logging.PrintInfo(Logging.
RequestCache
, s.TrimEnd(LineSplits));
573
Logging.PrintInfo(Logging.
RequestCache
, "------");
577
Logging.PrintInfo(Logging.
RequestCache
, s.TrimEnd(LineSplits));
589
Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_update_failed, "WinInetCache.Update()", entry.Key, new Win32Exception((int)entry.Error).Message));
590
Logging.Exit(Logging.
RequestCache
, "WinInetCache.Update()");
600
if(Logging.On) Logging.Exit(Logging.
RequestCache
, "WinInetCache.Update()", "Status = " + entry.Error.ToString());
758
if (Logging.On) Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_key, "WinInetReadStream.Close()", m_Key));
1007
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_no_commit, "WinInetWriteStream.Close()"));
1016
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_error_deleting_filename, "WinInetWriteStream.Close()", m_Entry.Filename));
1023
if(Logging.On)Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_delete_failed, "WinInetWriteStream.Close()", m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message));
1057
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_commit_failed, "WinInetWriteStream.Close()", m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message));
1068
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_error_deleting_filename, "WinInetWriteStream.Close()", m_Entry.Filename));
1082
Logging.PrintWarning(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_committed_as_partial, "WinInetWriteStream.Close()", m_Entry.Key, (m_StreamSize > 0 ? m_StreamSize.ToString(CultureInfo.CurrentCulture) : SR.GetString(SR.net_log_unknown))));
1083
Logging.PrintInfo(Logging.
RequestCache
, "WinInetWriteStream.Close(), Key = " + m_Entry.Key + ", Commit Status = " + m_Entry.Error.ToString());
1091
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_update_failed, "WinInetWriteStream.Close(), Key = " + m_Entry.Key, new Win32Exception((int)m_Entry.Error).Message));
1099
if(Logging.On)Logging.PrintInfo(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_max_stale_and_update_status, "WinInetWriteFile.Close()", m_Entry.Info.U.ExemptDelta, m_Entry.Error.ToString()));
net\System\Net\Cache\RequestCacheValidator.cs (1)
181
if(Logging.On)Logging.PrintError(Logging.
RequestCache
, SR.GetString(SR.net_log_cache_failing_request_with_exception, webStatus.ToString()));