Installation
Install the packages
Section titled “Install the packages”dotnet add package Surefiredotnet add package Surefire.DashboardThe core package ships with an in-memory store and notifications, which work out of the box but only within a single process. State is lost when the process stops.
For persistence or multi-process use, add a storage provider:
dotnet add package Surefire.PostgreSqldotnet add package Surefire.SqlServerdotnet add package Surefire.Sqlitedotnet add package Surefire.RedisQuick start
Section titled “Quick start”var builder = WebApplication.CreateBuilder(args);
builder.Services.AddSurefire();
var app = builder.Build();
app.AddJob("Hello", () => "Hello, World!");
app.MapSurefireDashboard();
app.Run();Run the app and go to /surefire to see the dashboard.
Next steps
Section titled “Next steps”- Configuration covers all the options you can pass to
AddSurefire. - Jobs explains how to register and configure jobs.
- Storage providers: PostgreSQL, SQL Server, Redis, and SQLite.