MiniScheduler 1.0.11
dotnet add package MiniScheduler --version 1.0.11
NuGet\Install-Package MiniScheduler -Version 1.0.11
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="MiniScheduler" Version="1.0.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MiniScheduler --version 1.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MiniScheduler, 1.0.11"
#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.
// Install MiniScheduler as a Cake Addin #addin nuget:?package=MiniScheduler&version=1.0.11 // Install MiniScheduler as a Cake Tool #tool nuget:?package=MiniScheduler&version=1.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MiniScheduler
Description
A simple scheduler, timed tasks (supports Cron expressions), delayed queues, does not support distributed, delayed queues support failure retry, support for setting the number of failures
Software Architecture
Software architecture description
Installation
- xxxx
- xxxx
- xxxx
Instructions
static void Main(string[] args)
{
IDelayQueue delayQueue = MiniSchedulerFactory.CreateDelayQueue(new QueueOptions() { EnableRetry = true });
delayQueue.Enqueue(new QueueItem()
{
TaskName = "Test01",
DelayTime = TimeSpan.FromSeconds(10),
DelayAction = () =>
{
Console.WriteLine("Test01 Action {0}", DateTime.Now.ToString());
return true;
}
});
delayQueue.Enqueue(new QueueItem<string>()
{
TaskName = "Test02",
DelayTime = TimeSpan.FromSeconds(16),
ActionData = "TestData",
EnableRetry = true,
DelayAction = (str) =>
{
Console.WriteLine("Test02 Action: {0}, Data: {1}", DateTime.Now.ToString(), str);
return false;
}
});
//Schedule Task
IScheduleTask schedule = MiniSchedulerFactory.CreateSchedule();
schedule.AddTask(new ScheduleTaskItem("10-30/5 * * * * ?", () =>
{
Console.WriteLine("Schedule Task 1: {0}", DateTime.Now.ToString());
return true;
}));
List<int> list = new List<int>(){ 1 };
schedule.AddTask(new ScheduleTaskItem<List<int>>("5 * * * * ?", list, (data) =>
{
Console.WriteLine("Schedule Task 2: {0}", DateTime.Now.ToString());
return true;
}));
Console.ReadLine();
}
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
Gitee Feature
- You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
- Gitee blog blog.gitee.com
- Explore open source project https://gitee.com/explore
- The most valuable open source project GVP
- The manual of Gitee https://gitee.com/help
- The most popular members https://gitee.com/gitee-stars/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.