Category: Aspire

  • Azure SqlDatabase on local PC with Aspire

    In this exercise, I focused on only one Azure resource: Azure SQL Database. My goal was simple: run Azure SQL locally, connect a console client project to it through .NET Aspire, and validate that the client can open a database connection end-to-end. How it looks like This is the ASPIRE project How I wired Azure…

  • Run Azure Cosmos DB on local PC

    In this exercise, I focused on only one Azure resource: Azure Cosmos DB. My goal was simple: run Cosmos locally, connect a console client project to it through .NET Aspire, create database/container automatically, and write a test item end-to-end. How it looks like This is the Data Explorer emulator with a item This is the…

  • Azure cloud components on local PC

    My opinion is that we strive to reproduce on local the production ( yes, it works on my PC should not be replaced with yes, it works on production only ) So, I decided to challenge myself: Can I run every major Azure service on my local machine? Not just one or two, but pretty…

  • Aspire as ChaosMonkey

    If I have all Aspire resources exposed , would not be easy to expose the endpoints to START and STOP the resources  ? And from idea to implementation – it is pretty easy . 1. Add a WebApp  => var builder = WebApplication.CreateBuilder();        2. Expose List as API – Use  ResourceNotificationService.TryGetCurrentState to see the…

  • JavaScriptExtensionsAspire–part 2–execution

    Now about the execution of https://www.nuget.org/packages/JavaScriptExtensionsAspire Finding and parsing the package json is pretty easy – this is the code More interessant is to find the name of npm executable Also I want to add the environment variables from the original javascript app Otherwise, pretty obvious stuff of starting the npm process info . NuGet…

  • JavaScriptExtensionsAspire–part 1

    TL;DR: Add package.json commands to ASPIRE Simplifying JavaScript Workflows in .NET with JavaScriptExtensionsAspire As a developer working with .NET and JavaScript, I often find myself juggling between managing JavaScript resources and integrating package.json commands into my applications. It can be tedious and time-consuming. That’s why I’m excited to share my experience with JavaScriptExtensionsAspire, a .NET…

  • Aspire Resource for Aspire–part 4–programatic access

    Aspire 13 has a MCP server integrated https://aspire.dev/dashboard/mcp-server/ . But what about an OPENAPI / swagger ? Also and a graph to show the  resources – https://aspire.dev/dashboard/explore/#resources-page , see graph image. But how about Mermaid syntax display of resources ? So I implemented in https://www.nuget.org/packages/AspireExtensionsResource , version >= 13 . This is how it looks…

  • DocumentorDatabaseExtensionsAspire–part 3–usage

    The usage is pretty simple : add  the package https://www.nuget.org/Packages/DocumentorDatabaseExtensionsAspire to the Aspire host project.  Add an SqlServer database and write //accepts also relative paths var res = db.AddDocumentationOnFolder(@”D:\documentation”); That will be all ! And here it the Aspire Dashboard with documentation for Pubs database And the diagram Here you will find a video about…

  • DocumentorDatabaseExtensionsAspire–part 2–implementation

    The Aspire project as already a database resource  – and a executing one ( sqlpad or dbgate or adminer ) So the answer to the several problems to be solved: 1. How to obtain the tables definition  ? We can obtain the definition by handling ourselves the tables- but why do not profit from the…

  • DocumentorDatabaseExtensionsAspire–part 1–idea

    The Aspire project as already a database resource  – and a executing one ( sqlpad or dbgate or adminer ) What if we can generate documentation for the database  ? There are several problems to be solved: 1. How to obtain the tables definition  ? 2. How to generate documents for the site ? 3.…