DashboardOptions

Configuration class for the Trax.Core Dashboard. Passed via the configure callback in AddTraxDashboard.

Properties

PropertyTypeDefaultDescription
RoutePrefixstring"/trax"URL prefix where the dashboard is mounted. Set automatically by UseTraxDashboard.
Titlestring"Trax"Title displayed in the dashboard header and browser tab.
EnvironmentNamestring""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 environment

Remarks

  • RoutePrefix and EnvironmentName are typically set by UseTraxDashboard, not in the configure callback. Setting them in configure will be overwritten.
  • Title is the only property typically set by users in the configure callback.