Create a custom proxy endpoint action with ASP.NET Core MVC
There are various reasons why it is useful to channel certain requests through your own application to an external endpoint; the most obvious is, for
There are various reasons why it is useful to channel certain requests through your own application to an external endpoint; the most obvious is, for
Rate Limit is a great tool to protect your own website and content from misuse; in some cases, however, rate limiting is also bad: for example, if yo
There are many ways to remove spaces or other characters in a string - there are just very big differences in terms of performance and efficiency. Be
Code formatting is a very important element when developers work together on a project - and you are always well advised not to invent your own forma
Sustainable Code is a constantly growing GitHub repository created by me, in which I collect various everyday code snippets and measure the performan
A popular unit test - and also a necessary test - is the correct registration of interfaces and their implementation with dependency injection. And a
When working with ZIP files in .NET, there may be cases where the file is not stored on disk but comes directly as a Stream. This could happen if you
Working with compressed files is common in many applications, whether you're extracting data from an archive, installing software packages, or retrie
When working with .NET apps you may sometimes need to bundle multiple files into a single compressed archive for easier storage, transfer, or process
In C# (.NET 6 and above), there is now a very simple way to read out the CPU load with minimal overhead - i.e. without threads. The PerformanceCounte
Dealing with empty lists is an everyday situation in .NET. An empty list is often preferred to a null in order to control the logic. But how expensiv
We are currently in the preview phase of .NET 9, which releases in Nov 2024 - and if you want to test it extensively like I do, store the preview ver
Strings are one of the most commonly used types in .NET applications - and very often the source of inefficient code. For example, cleaning up a stri
Refit is an open-source library for .NET developers that simplifies the process of making HTTP API calls. It allows developers to define a set of int
Strong Name Signing is a mechanism in .NET development that ensures the integrity and authenticity of assemblies. It is based on a public-private key
YAML files are unfortunately part of everyday life for all developers these days; and although they are very error-prone and almost impossible to edi
For many years, there has been a lot of criticism of Visual Studio's current solution format. It is very difficult to read, it does not follow any st
Auditing is becoming increasingly important in the everyday life of a developer; however, until now there was no particularly good way in .NET - even
TLDR; You can see the full sample in my GitHub repository BEN ABT Samples - ASP.NET Core Form protection with Cloudflare's Turnstile Turnstile is a
It's now been a few months since the GDPR-drama and data-harvesting around Moq (Stop using Moq as a guinea pig to get feedback on and develop Sponsor
.NET event counters are a relatively new API for collecting metrics from .NET applications. They are part of the EventSource and EventCounter namespa
When you join a project as a new developer, you see one thing above all: no standards for Git commit messages. Some put emojis in the message, others
By default, Azure Application Insights comes with necessary and important telemetry capabilities to monitor the basic functions of an application and
The Azure Communication Service is a fairly new but already popular service for sending emails at scale. In this article, I would like to show you ho
The Azure Communication Service is a fairly new but already popular service for sending emails at scale. In this article, I would like to show you ho
One of the last blog posts (Text and EMail Templates with Handlebars.NET) was generally about HandleBars.NET - a very popular template engine. This p
API models are one of the elements where I personally see the most naming errors - which have a massive impact on the architect and cause subsequent
In many code bases there are Services and Providers - and often they do the same thing structurally; but what is the idea of a Service- and Provider-
Database entities are the objects that represent the tables in your database. They are the objects that you use to read and write the database. Namin
Often seen, often used incorrectly: DTOs. Data Transfer Objects. In principle, DTO is an umbrella term, a design pattern that is used to transfer dat