diff --git a/插件库/Lskj.Util/extend/DataTableExtend.cs b/插件库/Lskj.Util/extend/DataTableExtend.cs index bb39392..49ce957 100644 --- a/插件库/Lskj.Util/extend/DataTableExtend.cs +++ b/插件库/Lskj.Util/extend/DataTableExtend.cs @@ -22,7 +22,7 @@ namespace Lskj.Util /// public static class DataTableExtend { - private static TaskSchedulerUtil taskSchedulerUtil = new TaskSchedulerUtil(20); + public static TaskSchedulerUtil SchedulerUtil = new TaskSchedulerUtil(20); /// /// 说明:移除DataTable中DataRow空白行 /// 创建人:龚宇超 @@ -248,36 +248,4 @@ namespace Lskj.Util } catch (Exception ex) { - Console.WriteLine(ex.Message); - return default; - } - } - /// - /// 添加任务 - /// - /// - /// - /// - /// - /// - public static Task AddTask(this Dictionary cachesDic, object control, string key, Task task) - { - Hashtable cachesHash = new Hashtable(); - if (!cachesDic.ContainsKey(control)) - { - cachesDic.Add(control, cachesHash); - } - else - { - cachesHash = cachesDic[control]; - } - cachesHash.Add(key, task); - if (task.Status == TaskStatus.Created) - { - task.Start(taskSchedulerUtil); - } - return task; - } - - } -} + \ No newline at end of file