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.
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);
|
|
}
|
|
}
|
|
}
|