Quartz.Aspire.Hosting
4.8.1
Prefix Reserved
dotnet add package Quartz.Aspire.Hosting --version 4.8.1
NuGet\Install-Package Quartz.Aspire.Hosting -Version 4.8.1
<PackageReference Include="Quartz.Aspire.Hosting" Version="4.8.1" />
<PackageVersion Include="Quartz.Aspire.Hosting" Version="4.8.1" />
<PackageReference Include="Quartz.Aspire.Hosting" />
paket add Quartz.Aspire.Hosting --version 4.8.1
#r "nuget: Quartz.Aspire.Hosting, 4.8.1"
#:package Quartz.Aspire.Hosting@4.8.1
#addin nuget:?package=Quartz.Aspire.Hosting&version=4.8.1
#tool nuget:?package=Quartz.Aspire.Hosting&version=4.8.1
Quartz.Aspire.Hosting
The Quartz.NET dashboard as an Aspire AppHost resource. One call runs the dashboard's
container image beside your workers; WithAttachedStore shows every scheduler in a database, and
WithReference(dashboard) dials a worker in as an agent.
Installation
In the AppHost project:
dotnet add package Quartz.Aspire.Hosting
Usage
var builder = DistributedApplication.CreateBuilder(args);
var quartzDb = builder.AddPostgres("postgres").AddDatabase("quartz");
var dashboard = builder.AddQuartzDashboard("quartz-dashboard")
.WithAttachedStore(quartzDb);
builder.AddProject<Projects.Orders_Worker>("orders")
.WithReference(quartzDb)
.WithReference(dashboard);
builder.Build().Run();
The worker calls UseDashboardAgent() from
Quartz.Dashboard.Agent, which reads what
WithReference(dashboard) sets. The resource's URL in the Aspire dashboard signs you in as an administrator.
- The image is
ghcr.io/quartznet/quartz-dashboardat this package's version;WithImageTagruns another. - The sign-in and agent tokens are generated secret parameters, kept in the AppHost's user secrets.
- Run one replica of the dashboard.
Every setting, and the environment variables the resource writes: Aspire Hosting.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Aspire.Hosting (>= 13.6.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.