添加项目文件。

This commit is contained in:
2025-02-25 22:28:49 +08:00
parent 07e26cc93e
commit 1a7bdb585a
32 changed files with 1601 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
namespace MegghysAPI.Attributes
{
[AttributeUsage(AttributeTargets.Method)]
public class AutoInitAttribute : Attribute
{
public AutoInitAttribute()
{
}
public AutoInitAttribute(Action postInit)
{
PostInit = postInit;
}
public AutoInitAttribute(string log)
{
LogMessage = log;
}
/// <summary>
/// 越低越优先
/// </summary>
public int Order { get; set; } = 10;
public string LogMessage { get; set; }
public Action PostInit { get; set; }
public bool Async { get; set; } = false;
}
}