百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

Chroniton

> 编程语言
开源

一个用于按时间表运行任务(作业)的库。

181 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个用于按时间表运行任务(作业)的库。

Synopsis

A library for running tasks(jobs) on schedules. It supports:

  • Strongly typed jobs with strongly typed parameters
  • Asynchronous execution
  • Running a single job on multiple schedules
  • Running Multiple jobs on a single schedule
  • Cron schedules
  • Run once and expiring schedules
  • Custom schedules
  • Limiting the number of threads on which work is done
  • Managing behaviors of jobs which run beyond their next scheduled time
  • Dependency Injection initialization
  • Full mocking for unit tests
  • .NET Core

See Wiki and Tutorial for more info. Official site here.

Code Example

…

In the above example, here's what happens: The first job starts immediately and print's "Hello World" once every second. Five seconds later the second job starts and prints "Hello World2" every second. Five seconds later the first job stops and only the second job is running. Five seconds later, Stop() is called and the second job also stops. Notice the same job is used with multiple schedules with different parameters.

Coming Soon !!!

The above code works with the currently released version. A new version with serialization features is on the way and has been started. There will be some breaking changes. If you'd like to see some of the changes coming, check out the Serialization branch. The core logic for how jobs run will not change, but how jobs get added has. I'm personally very excited to be bringing these changes as it opens up a world of possibilites for the project.

Motivation

This project was inspired for the need to have a strongly typed .NET solution for running tasks on schedules.

Installation

in your nuget package manager:

Install-Package Chroniton

for .NET Core use:

Install-Package Chroniton.NetCore

Contributors

Created by : Leonard Sperry [email protected]

License

Licensed under the MIT License

Changes

V 1.0.3

  • Cron string support
  • XUnit
  • Simplified constructors for SimpleJob and SimpleParameterizedJob

V 1.0.2

  • Support for run once and expiring jobs

V 1.0.1

  • Simplified Singularity by removing one of the main loops.
  • Added .NET Core support

Future Features

  • Serialization
  • Distributed execution

Notes

Unfortunately, .NET Core projects do not yet support referencing Shared Code projects. Therefore, the .NET Core projects in this solution reference all the files in the shared projects directly.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言