Liwendong.Frameworks.Tasks 1.2.2

dotnet add package Liwendong.Frameworks.Tasks --version 1.2.2                
NuGet\Install-Package Liwendong.Frameworks.Tasks -Version 1.2.2                
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="Liwendong.Frameworks.Tasks" Version="1.2.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Liwendong.Frameworks.Tasks --version 1.2.2                
#r "nuget: Liwendong.Frameworks.Tasks, 1.2.2"                
#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 Liwendong.Frameworks.Tasks as a Cake Addin
#addin nuget:?package=Liwendong.Frameworks.Tasks&version=1.2.2

// Install Liwendong.Frameworks.Tasks as a Cake Tool
#tool nuget:?package=Liwendong.Frameworks.Tasks&version=1.2.2                

Liwendong.Frameworks.Tasks

自定义任务

更新日志

V1.2.0

  • 新增任务可以直接调用

使用方法

新增任务

 var customerTask = new TaskControlManage()
  {
      TaskName = "任务名",
      Item = new TaskControlItem()
      {
          Enable = [true|false], //是否启用
          Setting = "300", // 时间设置
          ExecutionFunction = null, // 执行方法
          IsAsyncExecute = true, // 是否异步执行
      }
  };
  TaskHelper.AddTaskControlItem(customerTask);

移除任务

TaskHelper.RemoveTaskControlItem("任务编号");

更改周期配置

TaskHelper.SetTaskControlSettings("任务编号", "周期配置值");

更改任务启动状态

 TaskHelper.SetTaskControlStatus("任务编号", [true|false]);

周期配置值

  • 纯数字: 表示间隔多少秒,例如 300,表示间隔5分钟
  • "小时:分钟:秒钟" : 表示每小时的指定时间执行。
  • "年-月-日 小时:分钟:秒钟": 表示指定时间执行
  • "年-月-日": 表示指定时间日期的0点0分执行
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. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net451 is compatible.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
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.2.2 264 10/17/2023
1.1.0 431 7/18/2022
1.0.0 334 6/18/2021