C#9 provides us with additional pattern combinators such as not, and, or to match expressions. One of my favourite is the not pattern. Especially in the following use case. As…
The action can’t be completed because it is open in IIS Express Worker Process.
I’ve been looking into an issue that is caused when saving an image to a local folder, the image is locked by an IIS Worker Process, meaning the delete functionality…
Say goodbye to static void main in c#9 & .NET 5
With .NET 5 projected in November 2020, the compiler will determine the new C# 9 language version as it’s default, allowing some very nice improvements, one of which gives us…
The benefits & implementation of the ‘Options Pattern’ in ASP.NET Core
As developers we know configuration is extremely important and is used in most projects. Injecting in IConfiguration into dependencies and retrieving it by key like this: _configuration[“Section:Key”] is a common…
Using Async Await in a Foreach Delegate.
When following the async await TAP pattern particularly when executing an async method inside a loop, such as a foreach delegate. Instead of writing a foreach loop you may want…