namespace MegghysAPI.Attributes { [AttributeUsage(AttributeTargets.Method)] public class AutoInitAttribute : Attribute { public AutoInitAttribute() { } public AutoInitAttribute(Action postInit) { PostInit = postInit; } public AutoInitAttribute(string log) { LogMessage = log; } /// /// 越低越优先 /// public int Order { get; set; } = 10; public string LogMessage { get; set; } public Action PostInit { get; set; } public bool Async { get; set; } = false; } }