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 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.

Back to top

Trax - A .NET framework for Railway Oriented Programming with Effects, Scheduling, and more