.NET Aspire 13: How to display confirmation message in the dashboard
Authorised Territory demonstrates how to show confirmation dialogs and notification messages in the .NET Aspire dashboard by adding a command to a Minimal API resource that calls an API endpoint, which then invokes an Azure Function.
Full summary based on transcript
Displaying confirmation and notification messages in the Aspire dashboard
The video shows how to surface user feedback in the .NET Aspire dashboard:
- A confirmation dialog (prompting the user before an action runs)
- A notification message (showing the result/status after the action)
Adding a command to a Minimal API resource
The presenter adds a new command to a Minimal API resource so it can be triggered from the Aspire dashboard. The command is wired to invoke an HTTP endpoint.
Calling an API endpoint that triggers an Azure Function
The flow demonstrated is:
- Aspire dashboard command triggers an API endpoint
- The API endpoint calls an Azure Function
Using the interaction service
To display the confirmation dialog and notification message in the dashboard, the video uses the Aspire dashboard interaction service.
Starting point
The presenter references a starting solution in an earlier video: