DashboardOptions
Configuration class for the Trax.Core Dashboard. Passed via the configure callback in AddTraxDashboard.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
RoutePrefix | string | "/trax" | URL prefix where the dashboard is mounted. Set automatically by UseTraxDashboard. |
Title | string | "Trax" | Title displayed in the dashboard header and browser tab. |
EnvironmentName | string | "" | The hosting environment name (e.g., "Development", "Production"). Auto-populated by UseTraxDashboard. |
Example
builder.AddTraxDashboard(options =>
{
options.Title = "My Application - Trains";
});
app.UseTraxDashboard(routePrefix: "/trains");
// RoutePrefix is set to "/trains" by UseTraxDashboard
// EnvironmentName is set automatically from the hosting environmentRemarks
RoutePrefixandEnvironmentNameare typically set byUseTraxDashboard, not in theconfigurecallback. Setting them inconfigurewill be overwritten.Titleis the only property typically set by users in theconfigurecallback.