public sealed class QuartzHelper
{
private static QuartzHelper instance = null;
private QuartzHelper()
{
}
public static QuartzHelper GetInstance()
{
object o = "";
if (instance == null)
{
lock (o)
{
if (instance == null)
{
instance = new QuartzHelper();
}
}
}
return instance;
}
public void StartQuartz()
{
IScheduler sched; //执行者
ISchedulerFactory sf = new StdSchedulerFactory();
sched = sf.GetScheduler();
JobDetail job = ne
{
private static QuartzHelper instance = null;
private QuartzHelper()
{
}
public static QuartzHelper GetInstance()
{
object o = "";
if (instance == null)
{
lock (o)
{
if (instance == null)
{
instance = new QuartzHelper();
}
}
}
return instance;
}
public void StartQuartz()
{
IScheduler sched; //执行者
ISchedulerFactory sf = new StdSchedulerFactory();
sched = sf.GetScheduler();
JobDetail job = ne