Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
19 lines
869 B
C#
19 lines
869 B
C#
namespace Hcs.ClientApi.RemoteCaller
|
||
{
|
||
/// <summary>
|
||
/// Конфигурация ServicePointManager для работы с TLS. Скорее всего класс не нужен.
|
||
/// </summary>
|
||
public static class HcsServicePointConfig
|
||
{
|
||
public static void InitConfig()
|
||
{
|
||
// TODO: Проверить комментарий
|
||
// Отключено 15.12.2023, работает и так
|
||
//ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
|
||
//ServicePointManager.CheckCertificateRevocationList = false;
|
||
//ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => true);
|
||
//ServicePointManager.Expect100Continue = false;
|
||
}
|
||
}
|
||
}
|