Class Task
- Namespace
- Dynamicweb.Indexing.Repositories.Tasks
- Assembly
- Dynamicweb.Core.dll
Represents task
- Inheritance
-
Task
- Inherited Members
Properties
End
Gets or sets the end time. DateTime.MaxValue indicates no end time, meaning it keeps repeating until actively stopped.
Property Value
- Date
Time The end time.
IsTaskRunning
Returns true if the task is running.
Property Value
LastExecutionStartTime
Gets the last execution start time. The value represents the last time this task was started.
If the task was never run the value is null.
Property Value
- Date
Time ? The last execution time.
LastExecutionSuccessful
Gets the last execution successful. The value indicates whether the last execution was successful.
If the task was never run, or if it's currently running the value is null.
Property Value
- bool?
The last execution successful.
LastExecutionTime
Gets the last execution time. The value represents the last time this task was executed.
If the task was never run, or if it's currently running the value is null.
Property Value
- Date
Time ? The last execution time.
Name
Gets or sets the name of the task. This is the name of the actual file that defined this task.
Property Value
- string
The name.
Parameters
Gets or sets the parameters needed for the underlying task type.
Property Value
- IDictionary<string, string>
The parameters.
RepeatInMinutes
Gets or sets the repeat interval (in minutes).
Property Value
- int
The repeat in minutes.
Repository
Gets the repository to which this task belongs.
Property Value
- string
The repository.
Start
Gets or sets the start time. DateTime.MinValue indicates no start time, meaning it's active always, or until any specified end time.
Property Value
- Date
Time The start time.
TypeName
Gets or sets the type of the underlying. Must be specific enough so it can be resolved using the Type system.
Property Value
- string
The type.
Methods
Run()
Runs this task.