Swagger Replacement in ASP.NET 9
You might have heard that Swagger is removed in the templates of ASP.NET 9. So this blog post will show you alternatives.
You might have heard that Swagger is removed in the templates of ASP.NET 9. So this blog post will show you alternatives.
In async
code it is very common to pass a CancellationToken
to the method that is being awaited. This allows the caller to cancel the operation if it is no longer needed. But this will lead to some ceremonial code that is repeated in every method. In this article I will show you how to manage CancellationToken
in a central service in ASP.NET.
Even though it was introduced in .NET 7, I came across recently the AsParametersAttribute
. Let's have a look what it is good for.
In this article, we will build a minimal version of what ASP.NET Core does - yes, you read right. We will create a very simplistic clone of ASP.NET Core to discuss how the whole thing works. Beginning with a simple console application, we will add the necessary components to make it work as a web server. Bonus points for our own middleware pipeline and dependency injection.
In this small blog post, I will show you how to create your own Validation attribute in ASP.NET Core to tailor-made your validation rules.
Did you ever ask yourself: What is a middleware, and why should I use it?
If so, this blog post is exactly for you. We will see where we could use a middleware and also how we can use the Dependecy Injection container of ASP.NET Core.