Category: Aspire
-
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.…
-
SqlExtensionsAspire–drop create database
Another improvement for https://www.nuget.org/account/Packages/SqlExtensionsAspire : Drop Database , Create the database, run init scripts . Demo with Video : https://ignatandrei.github.io/aspireExtensions/images/SqlServerExtensions/video-Recreate_Database_With_Scripts-20251102225854.mp4 The code is pretty simple: executing drop create and initialization
-
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…
-
Aspire Resource for Aspire–part 1–idea
I have published many Aspire Extensions ( see https://msprogrammer.serviciipeweb.ro/category/aspire/ – ) However, to make an AUTOMATED demo, I need the token url of the dashboard and the url itself. How can I obtain those and pass to the demo / tests ? So here are the specs As a Aspire Resource developer I wanted to…
-
WebApi SDK generator–part 2–naive implementation
The decision to implement were: https://github.com/OpenAPITools/openapi-generator – because has multiple language implementations has a WebAPI docker Implement one SDK generator per WebAPI – it is simpler to generate commands for each one , rather to have multiple on the same ASPIRE resource Can wait for 1 WebAPI to become available, rather for all This said,…
-
WebApi SDK generator–part 1–idea
In those days, every Web Project has 2 parts – an API and an SPA . If we document the SPA for the users, the API is directed more to programmers- and it will be helpfull to have already generated for them SDK for the language of their choice. There are many generators in the…
-
Dotnet Global Tools Extension for ASPIRE–part 2–code and usage
First thing – – usage must be simple . So this is something that can be reproduces easy on each ASPIRE project : builder.AddDotnetGlobalTools(“dotnet-ef”, “dotnet-depends”); I cannot imagine simpler than this – and , of course, you can add many more other dotnet tools – see https://www.nuget.org/packages?q=&includeComputedFrameworks=true&packagetype=dotnettool&prerel=true&sortby=relevance What happens: Now a Aspire resource will be…