Skip to content

Instantly share code, notes, and snippets.

@mkorman
Last active May 24, 2016 11:56
Show Gist options
  • Save mkorman/5c99c3ec8acffed340a3a22ed7b596b9 to your computer and use it in GitHub Desktop.
Save mkorman/5c99c3ec8acffed340a3a22ed7b596b9 to your computer and use it in GitHub Desktop.
static SalesforceClient()
{
// SF requires TLS 1.1 or 1.2
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment