Testing with HttpClient Interception

In my last post I showed how to automatically generate a typed client for use with HttpClientFactory from a swagger file. Now I want to make changes to the client's behaviour and need unit tests, in this post I will…

Miscellaneous C# Async Tips

There are lots of great async tips out there, here a random few that I've collected over the past couple of years that I haven't seen much written about.Use Discards with Task.Run for Fire and ForgetThis is a…

BigInteger to String in Any Base with F#

In this post I share a snippet of code to print a .NET BigInteger to a string in any base, not just the usual binary, decimal and hex, and explore some of F# along the way.

How to dotnet build and Target net4x on macOS

In a previous post, I made a recommendation of additionally targeting net461 in addition to netstandard2.0 in certain scenarios, however one of the nice things about targeting netstandard2.x is that on macOS you can install the .NET Core…