From 108fce00642c341a22a34bbdce994ee0cd19375e Mon Sep 17 00:00:00 2001 From: cyf Date: Thu, 6 Feb 2025 06:55:39 +0000 Subject: [PATCH] SVN r242 SVN-Revision: r242 --- 插件库/Lskj.Util/extend/DataTableExtend.cs | 36 ++-------------------- 1 file changed, 2 insertions(+), 34 deletions(-) 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