public async Task StartAsync(CancellationToken cancellationToken) { _logger.LogInformation("QuartzService start"); await _quartzManager.InitQuartzService(); await _quartzManager.Start(); }
public void Start() { var Job = new QuartzManager(); Job.Excute <Job1>(); Job.Start(); }
static void Main(string[] args) { var Job = new QuartzManager(); Job.Excute <MyJob>(); Job.Excute <Job1>(); Job.Start(); Console.ReadKey(); }