VinBen.Extension.Quartz
0.0.1.3
dotnet add package VinBen.Extension.Quartz --version 0.0.1.3
NuGet\Install-Package VinBen.Extension.Quartz -Version 0.0.1.3
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="VinBen.Extension.Quartz" Version="0.0.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VinBen.Extension.Quartz --version 0.0.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VinBen.Extension.Quartz, 0.0.1.3"
#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 VinBen.Extension.Quartz as a Cake Addin #addin nuget:?package=VinBen.Extension.Quartz&version=0.0.1.3 // Install VinBen.Extension.Quartz as a Cake Tool #tool nuget:?package=VinBen.Extension.Quartz&version=0.0.1.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
关于
Vin.Extension.Quartz 是 Vin 的一个扩展,用于提供 Quartz 定时任务的支持。
使用
在使用的地方注入VinTaskService
StartScheduler() 启动调度器 不需要调用启动,创建任务时会自动启动
StopScheduler() 停止调度器
AddJobTask(new TaskInfo(){
JobId = "任务Id",
JobName = "任务名称",
JobGroup = "任务组",
TaskInfoType = "Generics 泛型,Assembly 程序集",
JobType = "如果是泛型,需要指定类型",
AssemblyName = "如果是程序集,需要指定程序集名称",
ClassName = "如果是程序集,需要指定类名称",
Parameters = "任务参数",
TriggerType = "Simple 简单,Cron 表达式",
StartTime = "开始时间",
EndTime = "结束时间",
IntervalType = "间隔类型 Second 秒,Minute 分钟,Hour 小时,Day 天",
Interval = "间隔值",
LoopType = "循环类型 Once 一次 Infinite 无限次 Finite 有限次",
LoopCount = "有限次 需要指定循环次数",
CronExpression = "如果是Cron 需要指定 表达式",
}) 添加任务
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Quartz.Extensions.Hosting (>= 3.8.1)
- VinBen.Extension (>= 0.0.1.3)
- VinBen.Tool (>= 0.0.1.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on VinBen.Extension.Quartz:
Package | Downloads |
---|---|
VinBen.Extension.Framework.Quartz
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.