Table of Contents

Class RegisterScheduledTaskAttribute

Namespace
CMS.Scheduler
Assembly
CMS.Scheduler.dll

Registers scheduled task.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class RegisterScheduledTaskAttribute : Attribute
Inheritance
object
Attribute
RegisterScheduledTaskAttribute
Extension Methods

Constructors

RegisterScheduledTaskAttribute(string, Type)

Initializes a new instance of the RegisterScheduledTaskAttribute class.

public RegisterScheduledTaskAttribute(string identifier, Type taskType)

Parameters

identifier string

The unique identifier of the scheduled task.

taskType Type

The 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