BlazorExtensionsAspire – integrate BlazorWebAssembly with WebAPI via Aspire–idea

Any WebAPI application needs an UI – and Blazor is a choice nowadays ( along other SPA , like Angular, React, Svelte … )

For integrating in ASPIRE ,there is a no simple task : Blazor should know the WebAPI url and use it to gather data. But the WebAPI URL could change  – so – what could be the solution  ?

One solution is reading from appsettings.json ( ASP.NET Core Blazor configuration | Microsoft Learn ) , but how to write it in the first place ?

How to implement this you can see at https://github.com/ignatandrei/aspireExtensions/tree/main/src/BlazorExtensions –  and , of course nuget package , https://www.nuget.org/packages/blazorextensionsaspire


Posted

in

, , ,

by

Tags: