Category: .NET
-
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…
-
RSCG – SG4MVC
RSCG – SG4MVC name SG4MVC nuget https://www.nuget.org/packages/SG4MVC/ link https://github.com/SG4MVC/SG4MVC author Mark Flanagan Generate strong typed HTML helpers for ASP.NET MVC projects. This is how you can use SG4MVC . The code that you start with is The code that you will use is The code that is generated is Code and…
-
RSCG – BadIdeas.Icons.FontAwesome
RSCG – BadIdeas.Icons.FontAwesome name BadIdeas.Icons.FontAwesome nuget https://www.nuget.org/packages/BadIdeas.Icons.FontAwesome/ link https://github.com/phil-scott-78/Icons/ author Phil Scott generate font awesome icons This is how you can use BadIdeas.Icons.FontAwesome . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/BadIdeas.Icons.FontAwesome
-
RSCG – Genbox.FastEnum
RSCG – Genbox.FastEnum name Genbox.FastEnum nuget https://www.nuget.org/packages/Genbox.FastEnum/ link https://github.com/Genbox/FastEnum author Ian Qvist Generating values for enums This is how you can use Genbox.FastEnum . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/Genbox.FastEnum
-
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…
-
RSCG – Blazor.TSRuntime
RSCG – Blazor.TSRuntime name Blazor.TSRuntime nuget https://www.nuget.org/packages/Blazor.TSRuntime/ link https://github.com/BlackWhiteYoshi/Blazor.TSRuntime author Black White Yoshi Generating C# Code for Blazor from javascript files This is how you can use Blazor.TSRuntime . The code that you start with is The code that you will use is The code that is generated is Code and…
-
RSCG – StackXML
RSCG – StackXML name StackXML nuget https://www.nuget.org/packages/StackXML/ link https://github.com/ZingBallyhoo/StackXML author Zing Generating XML serializer without reflection This is how you can use StackXML . The code that you start with is The code that you will use is The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/StackXML