LogProvider.SetLog(LogProvider.WARN, "AutoOrdersJob", "自动JOB开始。。。");
int step = 30;
DateTime end = DateTime.Now;
DateTime start = end.AddMinutes(-1 * step);
try
{
Task.Run(new Action(() =>
{
LogProvider.SetLog(LogProvider.WARN, "AutoOrdersJob", string.Format("自动任务{0} - {1}", start.ToString("yyyy-MM-dd HH:mm:ss"), end.ToString("yyyy-MM-dd HH:mm:ss")));
aaa.Orders(start, end);
}));
Task.Run(new Action(() =>
{
int index = 1;
LogProvider.SetLog(LogProvider.WARN, "AutoOrdersJob", string.Format("自动任务{0} - {1}", start.AddMinutes(-1 * index * step).ToString("yyyy-MM-dd HH:mm:ss"), end.AddMinutes(-1 * index * step).ToString("yyyy-MM-dd HH:mm:ss")));
aaa.Orders(start.AddMinutes(-1 * index * step), end.AddMinutes(-1 * index * step));
}));