using NCC.TaskScheduler.Entitys.Entity;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace NCC.TaskScheduler.Interfaces.TaskScheduler
{
///
/// 定时任务
/// 版 本:V1.20.15
/// 版 权:Wesley(https://www.NCCsoft.com)
/// 作 者:NCC开发平台组
/// 日 期:2022-03-16
///
public interface ITimeTaskService
{
///
/// 列表
///
///
Task> GetList();
///
/// 信息
///
///
/// 租户信息
///
Task GetInfo(string id, Dictionary tenantDic = null);
///
/// 删除
///
/// 实体对象
///
Task Delete(TimeTaskEntity entity);
///
/// 创建
///
/// 实体对象
///
Task Create(TimeTaskEntity entity);
///
/// 更新
///
/// 实体对象
///
Task Update(TimeTaskEntity entity, Dictionary tenantDic = null);
///
/// 执行记录
///
/// 实体对象
///
Task CreateTaskLog(TimeTaskLogEntity entity, Dictionary tenantDic = null);
///
/// 启动自启动任务
///
void StartTimerJob();
}
}