You've already forked linux-packaging-mono
Imported Upstream version 4.3.2.467
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user