增加项目,分层

This commit is contained in:
chfei committed 2026-09-11 19:11:12 +08:00
1 parent 6e995a5bdb
commit 0a3e5af6a9
234 files changed
+26994 -1

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
using System;
/// <summary>
/// Represents an instance of a task.
/// </summary>
namespace Store.Framework.ThreadManage
{
/// <summary>
/// ¹¤×÷µ¥Ïî
/// </summary>
public class WorkUnit
{
internal bool IsWork { get; set; } = false;
internal DateTime EndTime { get; set; } = DateTime.Now;
internal WorkAction Action { get; set; }
internal bool Completed { get; set; }
internal object Argument { get; set; }
//public void Wait(int time)
//{
// EndTime = DateTime.Now.AddMilliseconds(time);
// IsWork = false;
//}
public T GetArg<T>()
{
return (T)Argument;
}
}
}