first commit -push

This commit is contained in:
dungtt
2025-10-15 15:15:53 +07:00
parent 674ae395be
commit a9577c5756
885 changed files with 74595 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
namespace RobotNet.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;
}