Table of Contents

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

name string

The unique name of the task.

displayName string

The display name of the task.

description string

The 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

string

Description

Gets the description of the task.

public string? Description { get; }

Property Value

string

DisplayName

Gets the display name of the task.

public string DisplayName { get; }

Property Value

string

IsOnlyExecutedInManagedSessions

Gets or sets whether this task requires a managed session to execute.

public bool IsOnlyExecutedInManagedSessions { get; set; }

Property Value

bool

IsSelectableInTemplates

Gets or sets whether this task can be selected in template frontend.

public bool IsSelectableInTemplates { get; set; }

Property Value

bool

Name

Gets the unique name of the task.

public string Name { get; }

Property Value

string

Priority

Gets or sets the priority level of this task. Default is Normal.

public TaskPriority Priority { get; set; }

Property Value

TaskPriority

RequiresAdmin

Gets or sets whether this task requires administrative privileges to execute.

public bool RequiresAdmin { get; set; }

Property Value

bool

Version

Gets or sets the version of this task implementation.

public string Version { get; set; }

Property Value

string