Table of Contents

Class TaskTemplate

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
public record TaskTemplate : ITaskTemplate, IEquatable<TaskTemplate>
Inheritance
TaskTemplate
Implements
Inherited Members
Extension Methods

Constructors

TaskTemplate()

public TaskTemplate()

TaskTemplate(TaskTemplate)

protected TaskTemplate(TaskTemplate original)

Parameters

original TaskTemplate

Properties

Conditions

Gets or sets the conditions associated with the task template.

public IEnumerable<ITaskCondition>? Conditions { get; set; }

Property Value

IEnumerable<ITaskCondition>

CreateTaskForEachMatch

Gets or sets a value indicating whether a task should be created for each match found.

public bool CreateTaskForEachMatch { get; set; }

Property Value

bool

Description

Gets or sets the description of the task template.

public string? Description { get; set; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Execution

Gets or sets the execution type of the task.

public TaskExecution Execution { get; set; }

Property Value

TaskExecution

Id

public long Id { get; set; }

Property Value

long

ImplementationName

Gets the name of the ResQueServeTask implementation to use for executing this task. This should match the Name property of a ResQueServeTaskAttribute registered in the system.

public string? ImplementationName { get; set; }

Property Value

string

IsMandatory

Gets or sets a value indicating whether the task is mandatory.

public bool IsMandatory { get; set; }

Property Value

bool

Parameters

Gets or sets the parameters needed for task execution, keyed by parameter name.

public IDictionary<string, object>? Parameters { get; set; }

Property Value

IDictionary<string, object>

RequireAllConditions

Gets or sets a value indicating whether all conditions must be met.

public bool RequireAllConditions { get; set; }

Property Value

bool

RequiresSuccessfulSignal

Indicates if the task is waiting for an external signal or callback to confirm success. If set to false, the task is considered successfully completed once the internal execution code completes.

public bool RequiresSuccessfulSignal { get; set; }

Property Value

bool

TimeoutSeconds

Defines a timeout in seconds for how long the task will wait before entering a failed state if is not executed in time.

public int? TimeoutSeconds { get; set; }

Property Value

int?

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(TaskTemplate?)

public virtual bool Equals(TaskTemplate? other)

Parameters

other TaskTemplate

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TaskTemplate?, TaskTemplate?)

public static bool operator ==(TaskTemplate? left, TaskTemplate? right)

Parameters

left TaskTemplate
right TaskTemplate

Returns

bool

operator !=(TaskTemplate?, TaskTemplate?)

public static bool operator !=(TaskTemplate? left, TaskTemplate? right)

Parameters

left TaskTemplate
right TaskTemplate

Returns

bool