mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-11 20:19:27 +08:00
加入任务调度模块
This commit is contained in:
27
Yi.Framework/Yi.Framework.Task/HttpJob.cs
Normal file
27
Yi.Framework/Yi.Framework.Task/HttpJob.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Quartz;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Job
|
||||
{
|
||||
public class HttpJob : IJob
|
||||
{
|
||||
private ILogger<VisitJob> _logger;
|
||||
public HttpJob(ILogger<VisitJob> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public Task Execute(IJobExecutionContext context)
|
||||
{
|
||||
return Task.Run(() =>
|
||||
{
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user