1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| using Pomelo.AspNetCore.TimedJob;
| using System;
| using System.Collections.Generic;
| using System.Linq;
| using System.Threading.Tasks;
|
| namespace WIDESEA_WebApi.Controllers
| {
| public class JobTask : Job
| {
| [Invoke(Begin = "2024-01-19 00:00", Interval = 1000*5, /*IsEnabled = true,*/ SkipWhileExecuting = true)]
| public void TaskTime()
| {
| //Console.WriteLine(DateTime.Now.ToString());
| }
| }
| }
|
|