How can I get negotiated TLS version used in HttpClient POST requests
问题 I am trying to get the TLS version information used in my HttpClient SendAsync calls. I have tried method from this link Detecting TLS Version used for HttpClient POST or GET calls but when I ran it in debug mode I have found that the object disposed exception comes while getting SslProtocol property. Is there any way that I can stop .net disposing the object properties until I read them. Here is the code: public bool ExecuteAsync() { using (var client = new HttpClient()) { using (var