mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 10:24:44 +08:00
修复定时任务不能运行
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user