internal static void SetBinding(string uriScheme, RequestCacheBinding binding)
{
if (uriScheme == null)
throw new ArgumentNullException("uriScheme");
if (s_CacheConfigSettings == null)
LoadConfigSettings();
if(s_CacheConfigSettings.DisableAllCaching)
return;
if (uriScheme.Length == 0)
s_DefaultGlobalBinding = binding;
else if (uriScheme == Uri.UriSchemeHttp || uriScheme == Uri.UriSchemeHttps)
s_DefaultHttpBinding = binding;
else if (uriScheme == Uri.UriSchemeFtp)
s_DefaultFtpBinding = binding;
}
//