![]() |
VOOZH | about |
dotnet add package Galosys.Foundation.AspNetCore.Quartz --version 26.5.20.1
NuGet\Install-Package Galosys.Foundation.AspNetCore.Quartz -Version 26.5.20.1
<PackageReference Include="Galosys.Foundation.AspNetCore.Quartz" Version="26.5.20.1" />
<PackageVersion Include="Galosys.Foundation.AspNetCore.Quartz" Version="26.5.20.1" />Directory.Packages.props
<PackageReference Include="Galosys.Foundation.AspNetCore.Quartz" />Project file
paket add Galosys.Foundation.AspNetCore.Quartz --version 26.5.20.1
#r "nuget: Galosys.Foundation.AspNetCore.Quartz, 26.5.20.1"
#:package Galosys.Foundation.AspNetCore.Quartz@26.5.20.1
#addin nuget:?package=Galosys.Foundation.AspNetCore.Quartz&version=26.5.20.1Install as a Cake Addin
#tool nuget:?package=Galosys.Foundation.AspNetCore.Quartz&version=26.5.20.1Install as a Cake Tool
成熟度: 🟡 可用 — 功能完整,测试或文档可能不完善
Galosys.Foundation.AspNetCore.Quartz 是 ASP.NET Core 集成的 Quartz 定时任务调度模块,提供 RESTful API 接口来管理定时任务的生命周期,支持动态暂停、恢复、触发和调度更新。
<PackageReference Include="Galosys.Foundation.AspNetCore.Quartz" Version="x.x.x" />
// Program.cs
services.AddQuartz(); // 注册 Quartz 调度服务
using Quartz;
public class DataSyncJob : QuartzJob
{
public DataSyncJob(ILoggerFactory loggerFactory) : base(loggerFactory) { }
protected override async Task ExecuteAsync(IJobExecutionContext context)
{
// 同步数据逻辑
await Task.Delay(1000);
}
}
{
"Job": {
"Configs": [
{
"Id": "1",
"Type": "DataSyncJob",
"Assembly": "MyApp.Jobs",
"Name": "数据同步任务",
"Cron": "0 0/5 * * * ?"
}
]
}
}
模块自动注册 QuartzService 控制器,提供以下接口:
| 方法 | 路径 | 说明 |
|---|---|---|
| POST | /api/quartz/pause |
暂停任务 |
| POST | /api/quartz/resume |
恢复任务 |
| POST | /api/quartz/runonce |
立即执行一次 |
| POST | /api/quartz/reschedule |
更新调度时间 |
| POST | /api/quartz/delete |
删除任务 |
| GET | /api/quartz/list |
获取任务列表 |
POST /api/quartz/pause
Content-Type: application/json
{
"jobName": "MyApp.Jobs.DataSyncJob"
}
POST /api/quartz/resume
Content-Type: application/json
{
"jobName": "MyApp.Jobs.DataSyncJob"
}
POST /api/quartz/runonce
Content-Type: application/json
{
"jobName": "MyApp.Jobs.DataSyncJob"
}
POST /api/quartz/reschedule
Content-Type: application/json
{
"jobName": "MyApp.Jobs.DataSyncJob",
"cron": "0 0/10 * * * ?"
}
| 类 | 说明 |
|---|---|
QuartzService |
REST API 控制器,提供任务管理接口 |
QuartzJob |
任务基类,继承此类实现具体业务逻辑 |
Galosys.Foundation.AspNetCore.Quartz/
├── Base/
│ └── Application/
│ └── QuartzService.cs # REST API 控制器
├── Galosys.Foundation.AspNetCore.Quartz.csproj
└── README.md
{Assembly}.{TypeName}| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Galosys.Foundation.AspNetCore.Quartz:
| Package | Downloads |
|---|---|
|
Galosys.AspNetCore.Application
Galosys.Foundation快速开发库 |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.5.20.1 | 93 | 5/20/2026 |
| 26.5.19.1 | 101 | 5/19/2026 |
| 26.5.18.1 | 105 | 5/18/2026 |
| 26.5.15.1 | 89 | 5/15/2026 |
| 26.5.12.3 | 90 | 5/12/2026 |
| 26.5.12.2 | 95 | 5/12/2026 |
| 26.4.27.1-rc1 | 97 | 4/26/2026 |
| 26.4.25.1-rc1 | 91 | 4/25/2026 |
| 26.4.22.2-rc7 | 95 | 4/22/2026 |
| 26.4.22.2-rc6 | 92 | 4/22/2026 |
| 26.4.22.2-rc4 | 96 | 4/22/2026 |
| 26.4.22.2-rc3 | 96 | 4/22/2026 |
| 26.4.19.1-rc1 | 101 | 4/19/2026 |
| 26.1.30.1-rc1 | 164 | 1/30/2026 |
| 26.1.29.1 | 172 | 1/29/2026 |
| 26.1.28.5 | 184 | 1/28/2026 |
| 26.1.28.4 | 171 | 1/28/2026 |
| 26.1.28.2 | 185 | 1/28/2026 |
| 26.1.23.6 | 180 | 1/23/2026 |
| 26.1.21.1 | 169 | 1/21/2026 |