Refactored hub URL handling to use a single BaseUrl property in FruitBankConstClient, set at startup from appsettings ("AyCode:Urls:BaseUrl"). Removed hardcoded and commented-out URLs. All startup files now hydrate BaseUrl and construct hub URLs at runtime, ensuring both fbHub and loggerHub use the same base. The AcHubConnection:Url setting is now ignored in appsettings.json. Added fast-fail if BaseUrl is missing. Also updated PowerShell build/test commands in settings.local.json. This prevents environment mismatches and enforces explicit configuration.
|
||
|---|---|---|
| .. | ||
| Services | ||
| wwwroot | ||
| FruitBankHybrid.Web.Client.csproj | ||
| Program.cs | ||
| README.md | ||
| _Imports.razor | ||
README.md
FruitBankHybrid.Web.Client
@project { type = "product" own-dep-projects = [ "AyCode.Core, AyCode.Core.Server, AyCode.Entities, AyCode.Entities.Server, AyCode.Interfaces, AyCode.Interfaces.Server, AyCode.Models, AyCode.Models.Server, AyCode.Services, AyCode.Services.Server, AyCode.Utils (in AyCode.Core repo)", "Mango.Nop.Core (in Mango.Nop Libraries repo)" ] }
Blazor WebAssembly client running in the browser after server prerendering. .NET 10.0.
Folder Structure
| Folder | Purpose |
|---|---|
Services/ |
WASM-specific: FormFactor, credential storage, console logging |
Key Files (Root)
Program.cs— WASM startup, DI registration._Imports.razor— Global imports.