Category: Aspire
-
AspireFileDisplayExtension–part 3–how to use
Now how to use the nuget https://www.nuget.org/packages/AspireFileDisplayExtension/ You will reference the nuget and wrote this kind of code into AppHost.cs And then start the ASPIRE project and browse to http://127.0.0.1:36308/files/AppHost.cs and http://127.0.0.1:36308/files/test.spec.ts Or you can see the video Your browser does not support the video tag
-
AspireFileDisplayExtension–part 2–implementation
Building AspireFileDisplayExtension required solving three distinct challenges. Let me walk you through how I tackled each one, and show you the actual code that makes it work. Challenge 1: Adding a URL Endpoint to an Aspire Resource How do I attach a web server to an Aspire resource? The solution is surprisingly elegant: create a…
-
AspireFileDisplayExtension – part 1–idea
When I develop Aspire extensions, I frequently want to demonstrate how they’re used in practice. Playwright is fantastic for capturing application URLs and showing them in action—but it only reveals URLs, not the actual code behind them. The real challenge? I don’t just want to show all the code. I want to highlight the relevant…
-
Aspire Port 3–tests
Now the only thing that remains are the tests. And I like to do the the tests with video . So this is the code and one test that verifies that the port for sqlite is ok The flashAndClick makes an error if cannot find the document And this is the video generated Your browser…
-
Aspire Port- part 2–implementation
While building distributed applications with .NET Aspire, I kept running into the same annoyance: I wanted the same resource to come up on the same port every time I ran my app locally — a SQLite web viewer, a Mongo Express UI, or some other sidecar tool that I’d bookmarked or wired into a script.…
-
Aspire Port–part 1–idea
I work cu Aspire, One of the problem that I see is that some of extensions are needing a port – and , if not, they are allocating a random one. I need sometimes to have the SAME number port allocated every time. But I got tired to hardcode the port – and I wish…
-
VaRe&DaIn–part 010 of n–creation of database.md
The first iteration of the project should create the database – no matter if SqlServer, PostgreSql, Sqlite or MongoDB ( see references ) . Database independence sounds simple until,because I use simple connections, the app should do schema creation. The challenge is that each backend speaks a different language. SQL Server and PostgreSQL need SQL…
-
Azure Storage Queues with Aspire on Local PC
In this exercise, I focused on only one Azure resource: Azure Storage Queues. My goal was simple: run Queue Storage locally with the emulator, connect a console client project to it through .NET Aspire, and validate that the client can enqueue and dequeue a message end-to-end. AzureQueues How it looks like This is the ASPIRE…
-
Azure Storage Tables with Aspire on Local PC
In this exercise, I focused on only one Azure resource: Azure Storage Tables. My goal was simple: run Table Storage locally with the emulator, connect a console client project to it through .NET Aspire, and validate that the client can create a table and read/write an entity end-to-end. How it looks like This is the…
-
Azure App Configuration with Aspire on Local PC
In this exercise, I focused on only one Azure resource: Azure App Configuration. My goal was simple: run App Configuration locally as an emulator, connect a console client project to it through .NET Aspire, and validate that the client can write and read configuration values end-to-end. How it looks like This is the App Configuration…