.NET Aspire Tutorials

Integrating Keycloak with Aspire - Part 1

In my series on ASP.NET Identity, I mentioned (several times) that you should be using Keycloak, Auth0, Corbado, or another identity service instead of rolling your own. That’s all good, but I left it up to you to figure out exactly how to do that. I thought it would be a good idea to configure an Aspire project from the beginning and show how authentication and authorization with a service works.

End-to-end integration testing with .NET Aspire

.NET Aspire is great for building distributed applications, defining all the resources, how they reference each other, and starting all the containers and projects. But integration testing can still be tricky as you need that whole environment setup as well. Don't worry, .NET Aspire is here to help, let's take a look at how to use the testing features it provides.

Getting started with testing and .NET Aspire - .NET Blog

Learn how to improve your software development process with automated testing in .NET Aspire. This post covers the basics of getting started, writing tests for distributed applications, and ensuring your services run smoothly.

Simplifying Local Development Environment and Testing with .NET Aspire.

In addition to simplifying environment setup, this guide walks us through writing robust integration tests. These tests ensure all components work well together and catch potential issues early in the development process. We’ll also learn how to incorporate these tests into a continuous integration (CI) pipeline, ensuring the code is consistently validated and error-free before it reaches production.

Implement a Geo-distance search using .NET Aspire, Elasticsearch and ASP.NET Core

This article shows how to implement a geo location search in an ASP.NET Core application using a LeafletJs map. The selected location can be used to find the nearest location with an Elasticsearch …

Integrating .NET Aspire With Azure Storage

Today, we will talk about integrating our Aspire apps with Azure Storage. We will start by looking at Azure Table Storage and then move on to Blob Storage.

Using Elasticsearch with .NET Aspire

This post shows how to use Elasticsearch in .NET Aspire. Elasticsearch is setup to use HTTPS with the dotnet developer certificates and and simple client can be implemented to query the data. Code:…

How to add .NET Aspire to existing an project

First, using an existing Blazor project, we add .NET Aspire Service Defaults project. The website is ran to show logging and health-check endpoint. Next, .NET Aspire App Host project is added and set as a start up project. Finally, the website is run again and the dashboard available in the AppHost project is displayed.

Hosting MongoDB in .NET Aspire

Today, you will learn how to integrate your distributed .NET Aspire application with MongoDB by using Aspire Components. We will walk through an example application that populates a MongoDB instance with some data and retrieves the data inside one of the hosted services.