Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@@ -124,6 +124,12 @@ namespace System.Web.Util {
if (settings == null || !Boolean.TryParse(settings["aspnet:EnsureSessionStateLockedOnFlush"], out _ensureSessionStateLockedOnFlush))
_ensureSessionStateLockedOnFlush = false;
if (settings == null || !Boolean.TryParse(settings["aspnet:UseRandomizedStringHashAlgorithm"], out _useRandomizedStringHashAlgorithm))
_useRandomizedStringHashAlgorithm = false;
if (settings == null || !Boolean.TryParse(settings["aspnet:EnableAsyncModelBinding"], out _enableAsyncModelBinding))
_enableAsyncModelBinding = BinaryCompatibility.Current.TargetsAtLeastFramework46;
_settingsInitialized = true;
}
}
@@ -465,5 +471,26 @@ namespace System.Web.Util {
return _ensureSessionStateLockedOnFlush;
}
}
// false [default] - don't force randomized hash code algorithm. Exisiting behavior
// true - use randomized hash code algorithm
private static bool _useRandomizedStringHashAlgorithm;
internal static bool UseRandomizedStringHashAlgorithm {
get {
EnsureSettingsLoaded();
return _useRandomizedStringHashAlgorithm;
}
}
// false - disable async model binding
// true - enable async model binding
// defaults to true when targeting >= 4.6, otherwise false
private static bool _enableAsyncModelBinding;
internal static bool EnableAsyncModelBinding {
get {
EnsureSettingsLoaded();
return _enableAsyncModelBinding;
}
}
}
}