Error: The Delegate RequestDelegate does not take X arguments – Experiences with minimal APIs

Error: The Delegate RequestDelegate does not take X arguments – Experiences with minimal APIs

When developing .NET minimal APIs, employing TypedResults for OpenAPI documentation can lead to compiler errors, specifically “Delegate RequestDelegate does not take X arguments.” To resolve this, using the generic Results type is recommended, enhancing both compilation and OpenAPI clarity by explicitly defining return type possibilities. Continue reading Error: The Delegate RequestDelegate does not take X arguments – Experiences with minimal APIs

Why should I use .NET Aspire?

Why should I use .NET Aspire?

.NET Aspire is designed for both developers and DevOps, streamlining development and deployment processes. It simplifies infrastructure setup, offers tools for monitoring resource usage, and integrates easily with existing applications. Incremental adoption allows developers to enhance projects without extensive changes, while providing support for various deployment methods and service integrations. Continue reading Why should I use .NET Aspire?

Key Features of .NET Aspire 9.2: Enhance Your Microservices Part 1

Key Features of .NET Aspire 9.2: Enhance Your Microservices Part 1

The article discusses the release of .NET Aspire 9.2, highlighting improvements that facilitate microservices development. Key features include a new Graph view for service relationships, enhanced Azure Cosmos DB support, PostgreSQL integration, and simplified package management through Central Package Management. The Codebreaker application exemplifies these advancements in practice. Continue reading Key Features of .NET Aspire 9.2: Enhance Your Microservices Part 1

Web API Updates with .NET 8

Web API Updates with .NET 8

Preview 3 of .NET 8 includes a new project templates to create an API with a todo service instead of the weather forecast . Looking into the generated code of this template, there are a lot more changes going on such as a slim builder and using a JSON source generator which helps when using AOT to create native .NET binaries. This article investigates the changes coming. Continue reading Web API Updates with .NET 8

Calling Web APIs using the dotnet CLI and HTTP Files with Visual Studio

Calling Web APIs using the dotnet CLI and HTTP Files with Visual Studio

Visual Studio 2022 17.5 includes new HTTP client tooling. This tool makes it easy to create API calls directly from Visual Studio, with a great output of the API results. It’s easy to directly debug API invocations with this tool. Another tool which I’m using since some years is the HTTP REPL which is available as a dotnet tool. This article shows how both of these tools. Continue reading Calling Web APIs using the dotnet CLI and HTTP Files with Visual Studio

Upgrading an ASP.NET Core Web API Project to .NET 6

Upgrading an ASP.NET Core Web API Project to .NET 6

Upgrading an ASP.NET Core 5 application to .NET 6, all what needs to be done is to change the project file for .NET 6, and update the NuGet packages to the new versions, and you’re done and can build and run the application. However, to take advantage of new features, and reduce the number of source code lines, some things can be changed – as shown in this article. Continue reading Upgrading an ASP.NET Core Web API Project to .NET 6