Add project

Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
This commit is contained in:
2025-08-12 11:21:10 +09:00
parent bbcbe841a7
commit 33ab055b43
546 changed files with 176950 additions and 0 deletions

View File

@ -0,0 +1,18 @@
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;
}
}
}