Uploading Files with HttpClient in .NET 6

The Problem I recently needed to figure out a way to send files to a third-party “document manager” system using HttpClient in .NET 6.0. This “document manager” system already had an API for uploading files, which we had previously gotten working in our teams Postman collection. Before we dive in, […]

Real-Time UI Updates with Postgres and SignalR

In one of my web applications at work, we provide a (Google) map and then set markers at various GPS coordinates. Those GPS coordinates are obtained through third-party vendor APIs on a schedule, and the results are stored in our database. Since the webpage that shows this map and markers […]

Git Tag Based Released Process Using GitHub Actions

In a previous post, I discussed how I was able to get a .NET Framework application built using GitHub actions. Go check out that post for the full YAML’y goodness. In this post, however, I want to explain how I modified that original GitHub Action to take advantage of git […]

Clean Coding in C# – Part I

One thing I’ve learned over the years is that being clever with your code is a waste of time and energy. The simpler, the better. Part of being “simpler”, to me, falls into the paradigm of “clean code”. But – what does “clean code” actually mean? In this post, we’ll […]

C# 8.0 – Switch Expressions

In C# 8.0, a new form of “switch” was introduced. While similar, you’ll find that this new “switch expression” is more concise than it’s “switch statement” counterpart as it does not require all the various keywords (case, break, default, etc.). Take this, albeit a contrived, example, starting with this enum […]