Skip to content

Instantly share code, notes, and snippets.

@CoditCompany
Last active March 31, 2016 09:03
Show Gist options
  • Save CoditCompany/2df83fd6e1e3f5c69b39b658fc11ef27 to your computer and use it in GitHub Desktop.
Save CoditCompany/2df83fd6e1e3f5c69b39b658fc11ef27 to your computer and use it in GitHub Desktop.
public void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime)
{
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment