mirror of
https://github.com/Megghy/MegghysAPI.git
synced 2025-12-06 22:26:56 +08:00
添加项目文件。
This commit is contained in:
13
Attributes/AutoTimerAttribute.cs
Normal file
13
Attributes/AutoTimerAttribute.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace MegghysAPI.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class AutoTimerAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// 单位为s
|
||||
/// </summary>
|
||||
public int Time { get; set; } = 30;
|
||||
public bool CallOnRegister { get; set; } = false;
|
||||
public bool Log { get; set; } = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user