Class ResQueServeTaskAttribute
- Namespace
- XENBIT.ResQueServe.Abstractions.Attributes
- Assembly
- RQS.Abstractions.dll
Marks a class as a ResQueServe task that can be dynamically loaded and executed by the TaskService.
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class ResQueServeTaskAttribute : Attribute
- Inheritance
-
ResQueServeTaskAttribute
- Inherited Members
Constructors
ResQueServeTaskAttribute(string, string, string?)
Initializes a new instance of the ResQueServeTaskAttribute class.
public ResQueServeTaskAttribute(string name, string displayName, string? description = null)
Parameters
namestringThe unique name of the task.
displayNamestringThe display name of the task.
descriptionstringThe description of the task.
Properties
Category
Gets or sets the category this task belongs to. Default is "General".
public string Category { get; set; }
Property Value
Description
Gets the description of the task.
public string? Description { get; }
Property Value
DisplayName
Gets the display name of the task.
public string DisplayName { get; }
Property Value
IsOnlyExecutedInManagedSessions
Gets or sets whether this task requires a managed session to execute.
public bool IsOnlyExecutedInManagedSessions { get; set; }
Property Value
IsSelectableInTemplates
Gets or sets whether this task can be selected in template frontend.
public bool IsSelectableInTemplates { get; set; }
Property Value
Name
Gets the unique name of the task.
public string Name { get; }
Property Value
Priority
Gets or sets the priority level of this task. Default is Normal.
public TaskPriority Priority { get; set; }
Property Value
RequiresAdmin
Gets or sets whether this task requires administrative privileges to execute.
public bool RequiresAdmin { get; set; }
Property Value
Version
Gets or sets the version of this task implementation.
public string Version { get; set; }