.net 4.5.2 default tls version code example
Example: Net.ServicePointManager.SecurityProtocol .net framework 4
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;