Xamarin Public Jenkins (auto-signing) 6bdd276d05 Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
2017-04-10 11:41:01 +00:00

47 lines
1.4 KiB
C#

using System.Net.Security;
using System.Net.Sockets;
namespace System.Net.Configuration {
sealed class SettingsSectionInternal
{
static readonly SettingsSectionInternal instance = new SettingsSectionInternal ();
internal static SettingsSectionInternal Section {
get {
return instance;
}
}
#if !MOBILE
internal UnicodeEncodingConformance WebUtilityUnicodeEncodingConformance = UnicodeEncodingConformance.Auto;
internal UnicodeDecodingConformance WebUtilityUnicodeDecodingConformance = UnicodeDecodingConformance.Auto;
#endif
internal readonly bool HttpListenerUnescapeRequestUrl = true;
internal readonly IPProtectionLevel IPProtectionLevel = IPProtectionLevel.Unspecified;
internal bool UseNagleAlgorithm { get; set; }
internal bool Expect100Continue { get; set; }
internal bool CheckCertificateName { get; private set; }
internal int DnsRefreshTimeout { get; set; }
internal bool EnableDnsRoundRobin { get; set; }
internal bool CheckCertificateRevocationList { get; set; }
internal EncryptionPolicy EncryptionPolicy { get; private set; }
internal bool Ipv6Enabled {
get {
#if CONFIGURATION_DEP && !MOBILE
try {
var config = (SettingsSection) System.Configuration.ConfigurationManager.GetSection ("system.net/settings");
if (config != null)
return config.Ipv6.Enabled;
} catch {
}
#endif
return true;
}
}
}
}