AttributeQuartz.Net 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package AttributeQuartz.Net --version 1.0.0                
NuGet\Install-Package AttributeQuartz.Net -Version 1.0.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="AttributeQuartz.Net" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AttributeQuartz.Net --version 1.0.0                
#r "nuget: AttributeQuartz.Net, 1.0.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.
// Install AttributeQuartz.Net as a Cake Addin
#addin nuget:?package=AttributeQuartz.Net&version=1.0.0

// Install AttributeQuartz.Net as a Cake Tool
#tool nuget:?package=AttributeQuartz.Net&version=1.0.0                

.net core特性定时任务

介绍

这是一款只需要在控制器中的Action中加上特性即可实现定时任务的类库,极大的简化了Quartz的使用流程

安装教程

1、将类库引用到项目中

2、在 appsettings.json 中配置网站根地址 WebRootUrl 

3、在 Startup.cs 中的 ConfigureServices 方法里调用 services.AddAttributeQuartz(); 添加特性定时服务

4、在 Startup.cs 中的 Configure 方法里调用 app.StartAttributeQuartz(Configuration["WebRootUrl"]); 来启动特性定时任务

使用说明

1、完成安装操作之后,只需要在需要执行定时任务的Action上加入特性 QuartzTask 就可以实现定时任务了

注意事项

1、如果不指定Router参数,则需要Controller路由配置为 [Route("/[controller]/[action]")]

2、如果指定CronExpression参数,则不需要指定IntervalInSeconds、IsRepeatForever、RepeatCount参数

参与贡献

QQ:279202647 作者:Core园主

转载请注明出处,以后会开源更多大家喜欢的项目。
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.1 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.

Version Downloads Last updated
1.0.1 455 12/9/2022
1.0.0 413 9/8/2021