Table of Contents

Class UrlScheduledTaskAddIn

Namespace
Dynamicweb.Scheduling.ScheduledTaskAddIns
Assembly
Dynamicweb.Core.dll

Scheduled task provider UrlScheduledTaskAddIn makes it possible to send a GET request to the specified Url

[AddInName("Dynamicweb.Scheduling.UrlAddIn.UrlAddIn")]
[AddInLabel("Send request to the URL")]
[AddInDescription("Send a GET request to the specified Url")]
public class UrlScheduledTaskAddIn : BaseScheduledTaskAddIn
Inheritance
UrlScheduledTaskAddIn
Inherited Members

Properties

Url

[AddInParameter("Url")]
[AddInParameterEditor(typeof(TextParameterEditor), "inputClass=NewUIinput", InfoText = "Required")]
public string? Url { get; set; }

Property Value

string

Methods

Run()

Performs the work of the scheduled task. Called once per task run, after the framework has populated the context properties and loaded the saved parameter values.

public override bool Run()

Returns

bool

true when the work succeeded; otherwise false. The value is logged and stored as the task's last result. Exceptions that escape this method are caught by the framework, logged, and recorded as a failed run.

To top