Refactor SignalR client DI and config, add test factory Refactored FruitBankSignalRClient construction to use DI and centralized configuration from appsettings.json across all platforms. Introduced TestSignalRClientFactory for consistent test setup. Added FruitBankHubConnectionExtensions for reusable SignalR connection and logging configuration. Updated Program.cs and MauiProgram.cs to register logger factories, log writers, and IHubConnectionBuilder via DI. Embedded appsettings.json in MAUI and updated .csproj references for build flexibility. No business logic changes; all updates are infrastructure and test setup. |
||
|---|---|---|
| .. | ||
| .config | ||
| Components | ||
| Services | ||
| FruitBankHybrid.Web.csproj | ||
| Program.cs | ||
| README.md | ||
| appsettings.Development.json | ||
| appsettings.json | ||
README.md
FruitBankHybrid.Web
@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)" ] }
ASP.NET Core Blazor Server host. Serves the web interface, hosts SignalR hubs, and supports interactive WebAssembly rendering.
Folder Structure
| Folder | Purpose |
|---|---|
Services/ |
Server-side FormFactor, SecureCredentialService (no-op), SignalR hub setup |
Components/ |
App.razor with DevExpress theme, Error page |
Controllers/ |
Empty placeholder |
Key Files (Root)
Program.cs— DI, SignalR hub mapping (DevAdminSignalRHub, LoggerSignalRHub), 256KB max message size, DevExpress Fluent theme, static asset versioning.