Configuration¶
Host wiring¶
builder.Services.AddLogisticsServices(builder.Configuration);
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode()
.AddAdditionalAssemblies(
typeof(ConnectSoft.Blazor.Mfe.Logistics.Pages.Admin.Dashboard).Assembly);
Settings¶
Configuration lives in the host (e.g. samples/LogisticsDemo.BlazorServer/appsettings.json):
{
"LogisticsApi": {
"UseStubLogisticsApi": true,
"BaseUrl": "https://localhost:7120",
"TimeoutSeconds": 30
}
}
UseStubLogisticsApidefaults totrue-> all data comes fromSeedDataStore.- Setting it to
falseregisters a named"LogisticsApi"HttpClient, but the services still use stubs today (markedPHASE-2in code).
Styling¶
UIKit/Flowbite static assets ship via NuGet. See the repo's docs/integration.md for the required CSS/JS load order and the initFlowbite() call on enhancedload.