Skip to content

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
  }
}
  • UseStubLogisticsApi defaults to true -> all data comes from SeedDataStore.
  • Setting it to false registers a named "LogisticsApi" HttpClient, but the services still use stubs today (marked PHASE-2 in 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.

See also