Today I was writing a tool that needed to handle JSON, the content was relatively large and I only needed to pick out a few parts of the structure, and thought to myself this would be the perfect time to…
csharp
A collection of 9 posts
Testing with HttpClient Interception
In my last post [https://stu.dev/generating-typed-client-for-httpclientfactory-with-nswag/] 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…
Generating a Typed Client for use with HttpClientFactory using NSwag
If you're a .NET developer building web apps or microservices, odds are at some point you're going to want to call an HTTP API from an ASP.NET Core app. This post covers how to create…
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…