Josef Ottosson

Josef Ottosson

Freelancing Developer ยท Microsoft MVP

Subscribe via RSS
© Josef Ottosson 2025

dotnet core

A collection of 29 posts

dotnet

Act on a Task as soon as it's completed with Task.WhenEach

Task.WhenEach allows us to act on a collection of tasks as they finish.

a year ago June 17th, 2024 1 min read
dotnet

C# - Tips and Tricks 03 - Use static initialization

Static initialization can help make your code a bit more readable and at the same time give you a performance boost, a win-win.

a year ago March 25th, 2024 2 min read
Using records when implementing the builder pattern in C#
c-sharp

Using records when implementing the builder pattern in C#

Here I'm showing some alternative ways of implementing the builder pattern by using regular classes, records and the new init keyword

3 years ago June 16th, 2022 5 min read
How to test configuration of HttpClient when using AddHttpClient
httpclient

How to test configuration of HttpClient when using AddHttpClient

Shows how to test the code written inside the AddHttpClient extension method

3 years ago January 16th, 2022 4 min read
httpclient

HttpClient - DelegatingHandler - Correlation Id

Shows two different ways of forwarding correlation ids when using HttpClient in dotnet core

3 years ago December 23rd, 2021 3 min read
Subscribe via RSS
© Josef Ottosson 2025