Vonage / vonage-dotnet-code-snippets

.NET code samples for using Nexmo
MIT License
11 stars 21 forks source link

Add TLS line to examples #35

Closed lornajane closed 5 years ago

lornajane commented 5 years ago

Since the TLS upgrade, it seems like users need to add a line to their examples to make them work. Can we add this: From community slack:

"Can someone please add the following line of code to the C# tutorial at https://developer.nexmo.com/messaging/sms/building-blocks/send-an-sms?

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls11 | System.Net.SecurityProtocolType.Tls12; "

caseydierking commented 5 years ago

See pull request right here.

RabebOthmani commented 5 years ago

@lornajane We already mention the TLS upgrade in our README . I'm not adding it to each example as it depends on machines and environments, I'm afraid it would confuse devs https://github.com/nexmo-community/nexmo-dotnet-quickstart#tls-upgrade