Class JobFactory
- Namespace
- Dynamicweb.Scheduling
- Assembly
- Dynamicweb.Core.dll
Represents a factory for creating different types of scheduled task jobs.
public sealed class JobFactory
- Inheritance
-
JobFactory
- Inherited Members
Methods
GetJob(Task)
Returns a job for the given scheduled task.
public static Job GetJob(Task task)
Parameters
task
TaskTask instance.
Returns
- Job
A new job for the given scheduling task.
GetJob(Task, CancellationToken)
Returns a job for the given scheduled task.
public static Job GetJob(Task task, CancellationToken token)
Parameters
task
TaskTask instance.
token
CancellationToken
Returns
- Job
A new job for the given scheduling task.