using MyCode.Project.Infrastructure.Enumeration; using System; namespace MyCode.Project.Services { public interface IWorkProcessService { /// /// 添加调度任务 /// /// 执行类 /// 商家ID /// 方法名 /// 备注 /// 参数信息 /// 执行类型 void Add(Guid merchantId, string methodName, string remark = "", object entity = null, int priority = 5, FuncType funcType = FuncType.Method) where T : class; /// /// 添加调度任务 /// /// 商家ID /// 执行类 /// 方法名 /// 备注 /// 参数信息 /// 执行类型 void Add(Guid merchantId, Type type, string methodName, string remark = "", object entity = null, FuncType funcType = FuncType.Method, int priority = 5); /// /// 添加调度任务 /// /// 商家ID /// 类型路径,如:Lxm.IServices.IWorkProcessService, Lxm.Services /// 方法名 /// 备注 /// 参数信息 /// 执行类型 void Add(Guid merchantId, string typePath, string methodName, string remark = "", string paramInfo = "", FuncType funcType = FuncType.Method, int priority = 5); /// /// 执行,每次执行10条数据 /// void Execute(); /// /// 重启失败调度 /// void RestratStopProcess(); /// /// 重新启用某个暂停了的调度 /// /// void RestartStopProcess(Guid workprocessId); /// /// 调度执行优先级比较低的任务 /// void ExecuteOther(); /// /// 调度执行优先级等于2的任务 /// void ExecutePriority2Work(); /// /// 调度执行优先级=6的任务 /// void ExecutePriority6(); } }