servicepointmanager

Can we add four protocols to ServicePointManager.SecurityProtocol?

社会主义新天地 提交于 2020-01-24 10:04:26
问题 I want to support all security protocols from ssl3 to tls 1.2 . But while searching on net I either found code as `ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11;` or as ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; But, I want to support all the protocols. So, is it wrong to write as ServicePointManager.SecurityProtocol = SecurityProtocolType

Binding web requests to specific network adapter

…衆ロ難τιáo~ 提交于 2019-12-13 01:26:18
问题 Background I have a mobile embedded device (Ubuntu/Mono) with 2 network adapters. One is WiFi and the other is GSM. The requirement is that when the WiFi adapter is connected to the internet (within range of a predetermined AP), the application uploads data ( HTTPS POST ) via WiFi but when WiFi is not available, but GSM is, it uploads data via GSM link. Testing In order to achieve this, I created a cloud-based webservice that returns OK if you issue a HTTP GET to it. The idea is to have a