定时任务配置

This commit is contained in:
tongfei
2023-10-27 10:20:31 +08:00
parent 8221eae779
commit f704cdd606
7 changed files with 398 additions and 5 deletions

View File

@@ -0,0 +1,141 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Domain.Options
{
/// <summary>
/// Quartz定时任务-配置项
/// </summary>
public class QuartzJobOptions
{
/// <summary>
/// 存储类型:键
/// </summary>
public string JobStoreTypeKey { get; set; }
/// <summary>
/// 存储类型:值
/// </summary>
public string JobStoreTypeValue { get; set; }
/// <summary>
/// 数据库驱动类型-这里是mysql:键
/// </summary>
public string JobStoreDriverDelegateTypeKey { get; set; }
/// <summary>
/// 数据库驱动类型-这里是mysql:值
/// </summary>
public string JobStoreDriverDelegateTypeValue { get; set; }
/// <summary>
/// 数据库表名前缀:键
/// </summary>
public string JobStoreTablePrefixKey { get; set; }
/// <summary>
/// 数据库表名前缀:值
/// </summary>
public string JobStoreTablePrefixValue { get; set; }
/// <summary>
/// 数据源的名称:键
/// </summary>
public string JobStoreDataSourceKey { get; set; }
/// <summary>
/// 数据源的名称:值
/// </summary>
public string JobStoreDataSourceValue { get; set; }
/// <summary>
/// 连接字符串:键
/// </summary>
public string JobStoreConnectionStringKey { get; set; }
/// <summary>
/// 连接字符串:值
/// </summary>
public string JobStoreConnectionStringValue { get; set; }
/// <summary>
/// mysql提供器:键
/// </summary>
public string JobStoreProviderKey { get; set; }
/// <summary>
/// mysql提供器:值
/// </summary>
public string JobStoreProviderValue { get; set; }
/// <summary>
/// 几点后开始执行
/// </summary>
public List<int> JobStartHour { get; set; }
/// <summary>
/// 几分钟后开始执行
/// </summary>
public List<int> JobStartMinute { get; set; }
/// <summary>
/// 执行Cron表达式可以是几小时or几分钟or几秒钟or几天or几周
/// </summary>
public string JobStartExpre { get; set; }
/// <summary>
///
/// </summary>
public string JobStartExpreAmount { get; set; }
/// <summary>
/// 是否启用集群:键
/// </summary>
public string JobStoreClusteredKey { get; set; }
/// <summary>
/// 是否启用集群:值
/// </summary>
public string JobStoreClusteredValue { get; set; }
/// <summary>
/// 节点都必须有一个唯一ID
/// </summary>
public string JobStoreInstanceIdKey { get; set; }
/// <summary>
/// 节点都必须有一个唯一ID
/// </summary>
public string JobStoreInstanceIdValue { get; set; }
/// <summary>
/// 工作名称:键
/// </summary>
public string QuartzJobKey { get; set; }
/// <summary>
/// 工作名称:值
/// </summary>
public string QuartzJobValue { get; set; }
/// <summary>
/// 工作描述
/// </summary>
public string QuartzJobDescription { get; set; }
/// <summary>
/// 触发器身份认证信息
/// </summary>
public string QuartzTriggerIdentity { get; set; }
/// <summary>
/// 触发器描述
/// </summary>
public string QuartzTriggerDescription { get; set; }
}
}

View File

@@ -29,4 +29,8 @@
<ProjectReference Include="..\WMS.Web.Core\WMS.Web.Core.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="QuartzJob\" />
</ItemGroup>
</Project>