コード例 #1
0
 internal void SetupCacheProtocol(Uri uri)
 {
     this.m_CacheBinding = RequestCacheManager.GetBinding(uri.Scheme);
     this.InternalSetCachePolicy(this.m_CacheBinding.Policy);
     if (this.m_CachePolicy == null)
     {
         this.InternalSetCachePolicy(DefaultCachePolicy);
     }
 }
コード例 #2
0
        //
        internal void SetupCacheProtocol(Uri uri)
        {
            m_CacheBinding = RequestCacheManager.GetBinding(uri.Scheme);

            // Note if the cache is disabled it will give back a bypass policy.
            InternalSetCachePolicy(m_CacheBinding.Policy);
            if (m_CachePolicy == null)
            {
                // If the protocol cache policy is not specifically configured, grab from the base class.
                InternalSetCachePolicy(WebRequest.DefaultCachePolicy);
            }
        }