Initial commit

This commit is contained in:
2026-07-13 09:25:40 +07:00
parent c08ff54676
commit bccfb156d7
1938 changed files with 641646 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
namespace RobotNet10.Script;
/// <summary>
/// Thuộc tính để đánh dấu một phương thức là một tác vụ định kỳ trong hệ thống RobotNet.
/// </summary>
/// <param name="interval"></param>
/// <param name="autoStart"></param>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class TaskAttribute(int interval, bool autoStart = true) : Attribute
{
/// <summary>
/// Thời gian định kỳ để thực hiện tác vụ, tính bằng giây.
/// </summary>
public int Interval { get; } = interval;
/// <summary>
/// Cho phép tác vụ này tự động bắt đầu khi hệ thống khởi động hay không.
/// </summary>
public bool AutoStart { get; } = autoStart;
}