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
540 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentScheduler;
using POSV.Job;
namespace POSV.Utils
{
public class JobUtils
{
/// <summary>
/// 启动定时任务
/// </summary>
public static void Startup()
{
JobManager.Initialize(new JobFactory());
}
/// <summary>
/// 停止定时任务
/// </summary>
public static void Stop()
{
JobManager.Stop();
}
}
}