mirror of
https://github.com/Megghy/MegghysAPI.git
synced 2025-12-06 14:16:56 +08:00
14 lines
361 B
C#
14 lines
361 B
C#
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;
|
|
}
|
|
}
|