title: What is the simplest way to enable TLS 1.2 for soap web proxy?
body: <p>I have a large legacy solution which is extensively using an auto generated soap web proxy. I want to configure it to support TLS 1.2 connections only, so i need to set </p>
  
  <blockquote>
    <p>System.Net.ServicePointManager.SecurityProtocol =
    SecurityProtocolType.Tls12;</p>
  </blockquote>
  
  <p>What is the simplest way to achieve this? Sub-classing of the proxy does not work for me, because it require a massive code change. And using a partial class does not provide me with good point to attach the configuration code.</p>