Class Job
- Namespace
- Dynamicweb.Scheduling
- Assembly
- Dynamicweb.Core.dll
Represents job
public abstract class Job
- Inheritance
-
Job
- Inherited Members
Constructors
Job(Task)
Creates new job instance using task data
protected Job(Task task)
Parameters
Job(Task, CancellationToken)
Creates new job instance using task data
protected Job(Task task, CancellationToken token)
Parameters
taskTaskTask object instance
tokenCancellationToken
Fields
Logger
protected ILogger Logger
Field Value
TaskRunResult
public bool? TaskRunResult
Field Value
- bool?
_task
protected Task _task
Field Value
Properties
CancellationToken
public CancellationToken CancellationToken { get; }
Property Value
HostUrl
Server host url
public Uri? HostUrl { get; set; }
Property Value
IsCancellationTokenUsed
public bool IsCancellationTokenUsed { get; protected set; }
Property Value
Methods
Execute()
Executes job
public abstract void Execute()
LogError(string)
protected void LogError(string message)
Parameters
messagestring
LogException(Exception)
protected void LogException(Exception ex)
Parameters
exException
LogFinished()
protected void LogFinished()
LogMessage(string)
protected void LogMessage(string message)
Parameters
messagestring
LogStarted()
protected void LogStarted()
LogWarning(string)
protected void LogWarning(string message)
Parameters
messagestring
UpdateLastResult(bool?)
protected void UpdateLastResult(bool? result)
Parameters
resultbool?