JobManager Class
Namespace: PTS.Workers
Assembly: PTS.Workers.dll
Manages system tasks.
Syntax
public class JobManager : IEnumerable<Job>, IEnumerable
Inheritance
System.Object
JobManager
Remarks
Paul Tesar, 3/5/2015.
Constructors
JobManager()
Default constructor.
Declaration
public JobManager()
Remarks
Paul Tesar, 3/5/2015.
Properties
Item[Int32]
Declaration
public Job this[int i] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i |
Property Value
Type | Description |
---|---|
Job |
Jobs
Gets or sets the list of tasks.
Declaration
protected List<Job> Jobs { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Job> | The tasks. |
Methods
AddTask(Job)
Adds a task.
Declaration
public virtual void AddTask(Job task)
Parameters
Type | Name | Description |
---|---|---|
Job | task | The task. |
Remarks
Paul Tesar, 3/5/2015.
Fetch(String)
Declaration
public virtual Job Fetch(string taskName)
Parameters
Type | Name | Description |
---|---|---|
System.String | taskName |
Returns
Type | Description |
---|---|
Job |
GetEnumerator()
Declaration
public IEnumerator<Job> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Job> |
Start()
Starts the tasks.
Declaration
public virtual void Start()
Remarks
Paul Tesar, 3/5/2015.
Start(String)
Declaration
public virtual void Start(string jobName)
Parameters
Type | Name | Description |
---|---|---|
System.String | jobName |
Stop()
Stops the tasks.
Declaration
public virtual void Stop()
Remarks
Paul Tesar, 3/5/2015.
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
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()