Sundial.Dashboard
2.204.0
dotnet add package Sundial.Dashboard --version 2.204.0
NuGet\Install-Package Sundial.Dashboard -Version 2.204.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sundial.Dashboard" Version="2.204.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sundial.Dashboard" Version="2.204.0" />
<PackageReference Include="Sundial.Dashboard" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sundial.Dashboard --version 2.204.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sundial.Dashboard, 2.204.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sundial.Dashboard@2.204.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sundial.Dashboard&version=2.204.0
#tool nuget:?package=Sundial.Dashboard&version=2.204.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sundial
.NET 功能齐全的开源分布式作业调度系统,可从最小的应用程序到大型企业系统使用。
安装
dotnet add package Sundial
快速入门
我们在主页上有不少例子,这是让您入门的第一个:
- 定义作业,并实现
IJob接口:
public class MyJob : IJob
{
private readonly ILogger<MyJob> _logger;
public MyJob(ILogger<MyJob> logger)
{
_logger = logger;
}
public Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken)
{
_logger.LogInformation(context.ToString());
return Task.CompletedTask;
}
}
- 在
Startup.cs注册AddSchedule服务和作业:
services.AddSchedule(options =>
{
options.AddJob<MyJob>(Triggers.PeriodSeconds(5)); // 5s 执行一次
});
- 运行项目:
info: 2022-12-05 19:32:56.3835407 +08:00 星期一 L System.Logging.ScheduleService[0] #1
Schedule hosted service is running.
info: 2022-12-05 19:32:56.3913451 +08:00 星期一 L System.Logging.ScheduleService[0] #1
Schedule hosted service is preloading...
info: 2022-12-05 19:32:56.4322887 +08:00 星期一 L System.Logging.ScheduleService[0] #1
The <job1_trigger1> trigger for scheduler of <job1> successfully appended to the schedule.
info: 2022-12-05 19:32:56.4347959 +08:00 星期一 L System.Logging.ScheduleService[0] #1
The scheduler of <job1> successfully appended to the schedule.
warn: 2022-12-05 19:32:56.4504555 +08:00 星期一 L System.Logging.ScheduleService[0] #1
Schedule hosted service preload completed, and a total of <1> schedulers are appended.
info: 2022-12-05 19:33:01.5100177 +08:00 星期一 L MyJob[0] #13
+ <job1> [C] <job1 job1_trigger1> 5s 1ts 2022-12-05 19:33:01.395 -> 2022-12-05 19:33:06.428
info: 2022-12-05 19:33:06.4676792 +08:00 星期一 L MyJob[0] #13
+ <job1> [C] <job1 job1_trigger1> 5s 2ts 2022-12-05 19:33:06.428 -> 2022-12-05 19:33:11.435
info: 2022-12-05 19:33:11.4460946 +08:00 星期一 L MyJob[0] #16
+ <job1> [C] <job1 job1_trigger1> 5s 3ts 2022-12-05 19:33:11.435 -> 2022-12-05 19:33:16.412
JobExecutionContext 重写了 ToString() 方法并提供以下几种格式:
# 持续运行格式
<作业Id> 作业描述 [并行C/串行S] <作业Id 触发器Id> 触发器字符串 触发器描述 触发次数ts 触发时间 -> 下一次触发时间
# 触发停止格式
<作业Id> 作业描述 [并行C/串行S] <作业Id 触发器Id> 触发器字符串 触发器描述 触发次数ts 触发时间 [触发器终止状态]
文档
您可以在主页找到 Sundial 文档。
贡献
该存储库的主要目的是继续发展 Sundial 核心,使其更快、更易于使用。Sundial 的开发在 Gitee 上公开进行,我们感谢社区贡献错误修复和改进。
许可证
Sundial 采用 MIT 开源许可证。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sundial.Dashboard:
| Package | Downloads |
|---|---|
|
YF.WL.Logger
日志 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.204.0 | 82 | 2/19/2026 | |
| 2.203.0 | 113 | 1/24/2026 | |
| 2.202.0 | 110 | 1/8/2026 | |
| 2.201.0 | 192 | 12/23/2025 | |
| 2.200.0 | 326 | 11/12/2025 | |
| 2.101.0 | 466 | 10/15/2025 | |
| 2.100.0 | 530 | 9/22/2025 | |
| 2.99.0 | 401 | 9/12/2025 | |
| 2.98.0 | 468 | 9/10/2025 | |
| 2.97.0 | 461 | 8/21/2025 | |
| 2.96.0 | 462 | 8/13/2025 | |
| 2.95.0 | 562 | 8/7/2025 | |
| 2.94.0 | 364 | 7/27/2025 | |
| 2.93.0 | 771 | 7/23/2025 | |
| 2.92.0 | 770 | 7/23/2025 | |
| 2.91.0 | 383 | 7/3/2025 | |
| 2.90.0 | 388 | 7/3/2025 | |
| 2.80.0 | 403 | 6/25/2025 | |
| 2.79.0 | 399 | 6/16/2025 | |
| 2.78.0 | 386 | 6/14/2025 |
Loading failed