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

 Join me at Thrive Conference 2025 in Slovenia: Elevate Your .NET Skills!

 Join me at Thrive Conference 2025 in Slovenia: Elevate Your .NET Skills!

Thrive Conference 2025, scheduled for June 2-4 in Radenci, Slovenia, offers developers and tech enthusiasts immersive sessions on .NET technology. My topics include pattern matching in C#, .NET Aspire integrations, and monitoring through OpenTelemetry. Attendees can connect with experts and enhance their skills in a wonderful city. Register now for an unforgettable experience. Continue reading  Join me at Thrive Conference 2025 in Slovenia: Elevate Your .NET Skills!

The First .NET Aspire Book!

The First .NET Aspire Book!

My new book on .NET Aspire is available! It covers creating microservices with .NET, utilizing Azure services as well as on-premises deployment. Each chapter introduces key concepts, tools, and techniques, with practical examples and an application which grows chapter by chapter. The article gives more ifnormation about the content of the book and provides links to grab a copy! Continue reading The First .NET Aspire Book!

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

Converting Strings to .NET Objects – IParsable and ISpanParsable

Converting Strings to .NET Objects – IParsable and ISpanParsable

A new feature of C# 11 allows abstract static members with interfaces. This makes it possible to define class methods to be used as a contract with a generic class implementation, e.g. using + and – operators. With .NET 7, numeric types implement many new interfaces. This C# 11 feature is not only about math! The new IParsable and ISpanParsable interfaces allow creating objects from strings. As these interfaces can be used with constraints in generic types, parsing strings to create objects is now an easy task with generic implementations. This article shows implementing both the string and the Span version of the parse interfaces and using them with generic types. Continue reading Converting Strings to .NET Objects – IParsable and ISpanParsable

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