You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
554 B
C#
29 lines
554 B
C#
using FluentScheduler;
|
|
using JwKdsV.Core.Job;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace JwKdsV.Core.Utils
|
|
{
|
|
public class JobUtils
|
|
{
|
|
/// <summary>
|
|
/// 启动定时任务
|
|
/// </summary>
|
|
public static void Startup()
|
|
{
|
|
JobManager.Initialize(new JobFactory());
|
|
}
|
|
|
|
/// <summary>
|
|
/// 停止定时任务
|
|
/// </summary>
|
|
public static void Stop()
|
|
{
|
|
JobManager.Stop();
|
|
}
|
|
}
|
|
}
|