Aug 08 2018

The proper way to use HttpClient

Most people are mostly using .net HttpClient the wrong way.  This is because HttpClient implements IDisposable which makes people think they should wrap it in a using statement.  Also, most code example on the interwebs show that usage including a lot of documentation from Microsoft.

Wrong. Wrong. Wrong.

Here is a great Code Project article on it.  It takes a “recipes” approach which makes it even better…