Class Job
- Namespace
- Dynamicweb.Scheduling
- Assembly
- Dynamicweb.Scheduling.dll
Represents job
public abstract class Job
- Inheritance
-
Job
- Inherited Members
Constructors
Job(Task)
Creates new job instance using task data
public Job(Task task)
Parameters
Job(Task, CancellationToken)
Creates new job instance using task data
public Job(Task task, CancellationToken token)
Parameters
task
Task- Task object instance
token
CancellationToken
Fields
_task
protected Task _task
Field Value
Logger
protected ILogger Logger
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()
Log(string)
[Obsolete("Use LogMessage instead.")]
protected void Log(string msg)
Parameters
msg
string
LogException(Exception)
protected void LogException(Exception ex)
Parameters
ex
Exception
LogFinished()
protected void LogFinished()
LogMessage(string)
protected void LogMessage(string message)
Parameters
message
string
LogStarted()
protected void LogStarted()
UpdateLastResult(bool?)
protected void UpdateLastResult(bool? result)
Parameters
result
bool?