修复定时任务不能运行

This commit is contained in:
yubaolee
2021-02-04 13:51:39 +08:00
parent 24f8eaf8c0
commit ecc32d4173
2 changed files with 29 additions and 16 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Threading;
using Infrastructure;
using Infrastructure.Cache;
using Microsoft.AspNetCore.Http;
@@ -37,5 +38,17 @@ namespace OpenAuth.App.Test
var result = app.QueryLocalHandlers();
Console.WriteLine(JsonHelper.Instance.Serialize(result));
}
[Test]
public void ChangeStatus()
{
var app = _autofacServiceProvider.GetService<OpenJobApp>();
app.ChangeJobStatus(new ChangeJobStatusReq
{
Id = "f40fe48d-71a4-4f47-b324-6178d97abfb9",
Status = 1
});
Thread.Sleep(60000);
}
}
}