Table of Contents

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

public Job(Task task)

Parameters

task Task

Task object instance

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

Logger

protected ILogger Logger

Field Value

ILogger

TaskRunResult

public bool? TaskRunResult

Field Value

bool?

_task

protected Task _task

Field Value

Task

Properties

CancellationToken

public CancellationToken CancellationToken { get; }

Property Value

CancellationToken

HostUrl

Server host url

public Uri? HostUrl { get; set; }

Property Value

Uri

IsCancellationTokenUsed

public bool IsCancellationTokenUsed { get; protected set; }

Property Value

bool

Methods

Execute()

Executes job

public abstract void Execute()

LogError(string)

protected void LogError(string message)

Parameters

message 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()

LogWarning(string)

protected void LogWarning(string message)

Parameters

message string

UpdateLastResult(bool?)

protected void UpdateLastResult(bool? result)

Parameters

result bool?
To top