The WebJob class, which extends ASNA.Monarch.Job, provides specialized support for interactive applications. This includes creating a new thread every time a Job is started and executing the startup program in it.
For a list of all members of this type, see WebJob Class Members.
Inheritance Hierarchy
ASNA.Monarch ASNA.Monarch.Job ASNA.Monarch.WebJob
Syntax
public class WebJob Inherits ASNA.Monarch.Job
Thread Safety
Any public static (Shared) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Remarks
One of the first tasks of job initiation is the creation of a Monarch device instance which is stored as part of the ASP.Net session collection. The WebJob constructor creates a new instance of WebJob.
The
Start method creates a new instance of an
ASNA.Monarch.WebDevice object for the job specified.
The
ExecuteStartupProgram method executes the startup
command-processing program.
The
EndProgram method terminates the current
WebJob program.
The CurrentWebJob property returns the current job running.
The
Device field is the name of the
ASNA.Monarch.WebDevice used by the
WebJob.
The
ShutDown method ends all active programs, closes the
database connections for disk and printer files and then
aborts the thread assigned to the job.
There are also two methods,
AcceptCommands and
ShowPage, that are used to prepare the job to accept
commands in a non-displayfile aspx.vr.
ShowPage also presents an ASPX page to
initiate the conversation with the user.
Requirements
| Namespace: | ASNA.Monarch |
| Assembly: | ASNA.VisualRPG.Runtime.DLL |
| Platforms: | Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows 7, Windows 8 Pro, Windows 10 Pro |
