Class RegisterScheduledTaskAttribute
Registers scheduled task.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class RegisterScheduledTaskAttribute : Attribute
- Inheritance
-
objectAttributeRegisterScheduledTaskAttribute
- Extension Methods
Constructors
RegisterScheduledTaskAttribute(string, Type)
Initializes a new instance of the RegisterScheduledTaskAttribute class.
public RegisterScheduledTaskAttribute(string identifier, Type taskType)
Parameters
identifierstringThe unique identifier of the scheduled task.
taskTypeTypeThe type implementing the scheduled task.
Remarks
Any changes to the identifier must also be reflected in the corresponding scheduled task definition in the database. If the identifier and the task definition are not synchronized, the task will not execute.
Properties
Identifier
Unique identifier of the scheduled task.
public string Identifier { get; }
Property Value
- string
TaskType
Type implementing the scheduled task.
public Type TaskType { get; }
Property Value
- Type