删除hangfire(不支持毫秒级别)

This reverts commit 49a9eb5460.
This commit is contained in:
陈淳
2022-11-29 12:34:45 +08:00
parent 0f2dc4d3ba
commit d97ef84b7e
5 changed files with 0 additions and 78 deletions

View File

@@ -36,30 +36,6 @@ namespace Yi.Framework.Job
}
_logger.LogWarning("定时任务开始调度:" + nameof(HttpJob) + ":" + DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss") + $":访问地址为:{url},结果为:{data}");
Console.WriteLine($"结果:{data}");
});
}
public Task Execute2(Dictionary<string,object> dic)
{
return Task.Run(async () =>
{
//var jobData = context.JobDetail.JobDataMap;
string method = dic[Common.Const.JobConst.method].ToString();
string url = dic[Common.Const.JobConst.url].ToString();
string data = "异常!";
switch (method)
{
case "post":
data = await Common.Helper.HttpHelper.Post(url);
break;
case "get":
data = await Common.Helper.HttpHelper.Get(url);
break;
}
_logger.LogWarning("定时任务开始调度:" + nameof(HttpJob) + ":" + DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss") + $":访问地址为:{url},结果为:{data}");
Console.WriteLine($"结果:{data}");
});