JobAsync Class
Namespace: PTS.Workers
Assembly: PTS.Workers.dll
System task uilizing threads for asynchronous execution
Syntax
public abstract class JobAsync : Job, IJob
Implements
Remarks
Paul Tesar, 3/5/2015.
Constructors
JobAsync()
Declaration
public JobAsync()
JobAsync(Interval)
Taks constructor.
Declaration
public JobAsync(Interval interval)
Parameters
Type | Name | Description |
---|---|---|
Interval | interval | The interval. |
Remarks
Paul Tesar, 3/5/2015.
JobAsync(Boolean)
Declaration
public JobAsync(bool runOnce)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | runOnce |
JobAsync(Int32)
Declaration
public JobAsync(int intervalMs)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | intervalMs |
JobAsync(Thread, Boolean)
Declaration
public JobAsync(Thread thread, bool runOnce = false)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.Thread | thread | |
System.Boolean | runOnce |
Properties
IsThreadLocal
Declaration
public virtual bool IsThreadLocal { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Thread
Gets or sets the thread for the task.
Declaration
public virtual Thread Thread { get; protected set; }
Property Value
Type | Description |
---|---|
System.Threading.Thread | The thread. |
Methods
Start()
Starts the task.
Declaration
public override void Start()
Overrides
Remarks
Paul Tesar, 3/5/2015.
Stop()
Stops the task.
Declaration
public override void Stop()
Overrides
Remarks
Paul Tesar, 3/5/2015.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()