21 references to Policy
System (21)
net\System\Net\Cache\FtpRequestCacheValidator.cs (21)
76if (Policy.Level == RequestCacheLevel.BypassCache) 92if ((RequestMethod != HttpMethod.Get || !((FtpWebRequest)Request).UseBinary) && Policy.Level == RequestCacheLevel.CacheOnly) 107if (Policy.Level >= RequestCacheLevel.Reload) 190if (Policy.Level >= RequestCacheLevel.Reload) 193GlobalLog.Assert("OnValidateCache()", "This validator should not be called for policy = " + Policy.ToString()); 194if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_validator_invalid_for_policy, Policy.ToString())); 201if (Policy.Level == RequestCacheLevel.CacheOnly) 219if (Policy.Level == RequestCacheLevel.Revalidate || CacheEntry.IsPartialEntry) 226if (CacheFreshnessStatus == CacheFreshnessStatus.Fresh || Policy.Level == RequestCacheLevel.CacheOnly || Policy.Level == RequestCacheLevel.CacheIfAvailable) 232if (Policy.Level == RequestCacheLevel.CacheOnly) 255if (Policy.Level >= RequestCacheLevel.Reload) 258GlobalLog.Assert("RevalidateCache()", "This validator should not be called for policy = " + Policy.ToString()); 259if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_validator_invalid_for_policy, Policy.ToString())); 337if (Policy.Level != RequestCacheLevel.Default && Policy.Level != RequestCacheLevel.Revalidate) 340if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_response_valid_based_on_policy, Policy.ToString())); 388if (Policy.Level == RequestCacheLevel.CacheOnly) { 389if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_not_updated_based_on_policy, Policy.ToString())); 419if (Policy.Level == RequestCacheLevel.NoCacheNoStore) { 420if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_removed_existing_based_on_policy, Policy.ToString()));