AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AsyncJob Members

The AsyncJob type exposes the following members.

Constructors


  Name Description
Public method AsyncJob(Type, Boolean, Boolean, String)
Initializes a new instance of the AsyncJob class.

Methods


  Name Description
Public method Execute
Executes the async job by creating the job instance, registering it with the hosting environment, and running it. If StopOnError is true and an exception occurs, the job is disabled.
Public method Stop
Stops the async job by disabling it and forwarding the stop request to the underlying job instance.

Properties


  Name Description
Public property AsyncJobType
A value indicating type of the task
Public property Enabled
A value indicating whether the task is enabled
Public property IsRunning
A value indicating whether a task is running
Public property LastEnd
Datetime of the last end
Public property LastStarted
Datetime of the last start
Public property LastSuccess
Datetime of the last success
Public property Name
Get the task name
Public property StopOnError
A value indicating whether to stop task on error