25 lines
565 B
C#
25 lines
565 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text.RegularExpressions;
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using Quartz;
|
|
|
|
namespace TopshelfStudy.NetCoreDemo
|
|
{
|
|
public static class QuartzNetHelper
|
|
{
|
|
/// <summary>
|
|
/// 是否是有效的 cron 字符串
|
|
/// </summary>
|
|
public static bool IsValidExpression(string cron)
|
|
{
|
|
return CronExpression.IsValidExpression(cron);
|
|
}
|
|
}
|
|
}
|