mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-01 22:56:36 +08:00
完善任务调度
This commit is contained in:
17
Yi.Framework/Yi.Framework.Common/Const/JobConst.cs
Normal file
17
Yi.Framework/Yi.Framework.Common/Const/JobConst.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.Const
|
||||
{
|
||||
public class JobConst
|
||||
{
|
||||
|
||||
public const string url = nameof(url);
|
||||
|
||||
public const string method = nameof(method);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -13,7 +13,8 @@ namespace Yi.Framework.Common.Helper
|
||||
{
|
||||
Assembly assembly = Assembly.Load(assemblyFile);
|
||||
return assembly.GetTypes().Where(m => m.IsClass
|
||||
&& m.Name==null?true:m.Name==className
|
||||
&& className == null?true:m.Name==className
|
||||
&& spaceName == null ? true :m.Namespace == spaceName
|
||||
).ToList();
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.Models
|
||||
{
|
||||
public class visitModel
|
||||
public class JobModel
|
||||
{
|
||||
public static int visitNum { get; set; } = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user