🦜 Andrew Lock | .NET Escapades
@andrewlock.net@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
Hi, my name is Andrew, or ‘Sock’ to most people. This blog is where I share my experiences as I journey into ASP.NET Core.
Your feed and you don't want it here? Just
e-mail the birb.
Safety and simplicity with LINQ: Working with the result pattern - Part 2
https://andrewlock.net/working-with-the-result-pattern-part-2-safety-and-simplicity-with-linq/
Published: October 15, 2024 09:00
In this post I show how to clean up unreadable Switch()-based result pattern code using LINQ query syntax, giving both readability and safety
Replacing Exceptions-as-flow-control with the result pattern: Working with the result pattern - Part 1
https://andrewlock.net/working-with-the-result-pattern-part-1-replacing-exceptions-as-control-flow/
Published: October 8, 2024 09:00
In this post I discuss why you might want to use the result pattern, demonstrate it with a simple example and show a naïve, ugly, solution
Major updates to NetEscapades.​AspNetCore.​SecurityHeaders
https://andrewlock.net/major-updates-to-netescapades-aspnetcore-security-headers/
Published: October 1, 2024 09:00
In this post I describe the recent major changes to NetEscapades.AspNetCore.SecurityHeaders, a NuGet package for adding security headers to your apps.
Fixing MAX_PATH issues in GitLab
https://andrewlock.net/fixing-max_path-issues-in-gitlab/
Published: September 17, 2024 09:00
In this post I show how you can enable Git's long-path support in a GitLab job to override Window's MAX_PATH limitations which can cause git clone failures
Preventing breaking changes in public APIs with PublicApiGenerator
https://andrewlock.net/preventing-breaking-changes-in-public-apis-with-publicapigenerator/
Published: September 10, 2024 09:00
In this post I show how you can use the PublicApiGenerator project to document your public API and build a snapshot unit test to prevent breaking changes
Working with tar files in .NET 8
https://andrewlock.net/working-with-tar-files-in-dotnet/
Published: September 3, 2024 09:00
In this post I show how to create, extract, and list tar files using the built-in tar support introduced in .NET 7, and discuss some of the limitations
Using Azure Storage Queue messages with Azure Functions and [QueueTrigger]
https://andrewlock.net/using-azure-storage-queues-with-azure-functions-and-queuetrigger/
Published: August 27, 2024 09:00
In this post I discuss using Azure Storage Queue as a message queue and how you can process Storage Queue messages using an Azure Functions app
Avoiding CDN supply-chain attacks with Subresource Integrity (SRI)
https://andrewlock.net/avoiding-cdn-supply-chain-attacks-with-subresource-integrity/
Published: August 20, 2024 09:00
In this post I discus the recent pollyfill.io supply-chain attack and describe how to protect against similar attacks using Subresource Integrity (SRI)
Combining multiple docker images into a multi-arch image
https://andrewlock.net/combining-multiple-docker-images-into-a-multi-arch-image/
Published: August 13, 2024 10:00
In this post I show two ways to combine multiple docker images into a single multi-arch image, discuss manifests and manifest lists, and why they matter
Simplifying [Theory] test data with Xunit.Combinatorial
https://andrewlock.net/simplifying-theory-test-data-with-xunit-combinatorial/
Published: August 6, 2024 09:00
In this post I show how you can simplify your xUnit [Theory] tests using the Xunit.Combinatorial package to auto-generate your test parameters
Creating source-only NuGet packages
https://andrewlock.net/creating-source-only-nuget-packages/
Published: July 30, 2024 09:00
In this post I show how you can create a NuGet package that contains source code (instead of dlls) which is then compiled into the target project