using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using UAS_PLCDataReader.Entity;
namespace UAS_PLCDataReader.PublicMethod
{
class PollingTask
{
///
/// 内部调用的任务,添加了取消标识符号
///
Dictionary InTask = new Dictionary();
///
/// 获取任务
///
///
///
public Task GetTask(int TID)
{
return null;
}
///
/// 添加任务,默认添加后自动执行,返回创建的TASK的ID
///
///
///
//public void AddTask(Action action, string Code)
//{
// Task newTask = Task.Factory.StartNew(() => action);
// InTask.Add(Code, newTask);
//}
///
/// 添加任务,默认添加后自动执行,返回创建的TASK的ID
///
///
///
public void AddTask(Action