Category: AspireResource
-
Aspire Resource for Aspire–part 3–usage
AspireExtensionsResource This package provides Aspire as a Resource in the Aspire Host Dashboard, making it easier to test and manage Aspire dashboards. You can download the solution at https://github.com/ignatandrei/aspireExtensions/tree/main/src/AspireResourceExtensions in order to see the tests. Installation Install via NuGet: Usage Add the Aspire resource to your distributed application builder: Use the resource to add environment…
-
Aspire Resource for Aspire–part 2–code
So those are the challenges Challenge 1: Extracting the Dashboard URL The Aspire dashboard doesn’t expose its URL directly through a simple API. Instead, the URL is logged to the application’s output. To capture it, I had to hook into the logging infrastructure. I created a FakeLoggerProvider(https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.testing.fakeloggerprovider?view=net-9.0-pp) that collects log messages, then scanned those messages…