Class MasterJob
IJob master class.
public class MasterJob : MasterBase<IJob>, IModel, IDisposable
- Inheritance
-
MasterJob
- Implements
- Inherited Members
- Extension Methods
Remarks
Instances of this class are factory classes for actual IJob implementations.
Constructors
MasterJob(string, string?, Type, IReadOnlyDictionary<string, object?>?)
Ctor.
public MasterJob(string name, string? description, Type jobType, IReadOnlyDictionary<string, object?>? properties)
Parameters
namestringunique (Job) master name
descriptionstringdescription string
jobTypeTypeTarget IJob instance type
propertiesIReadOnlyDictionary<string, object>Job master configuration parameters
Methods
CreateRuntimeJob(IStarter, string, string, IReadOnlyDictionary<string, object?>)
Create an IJob runtime instance.
public IJob CreateRuntimeJob(IStarter jobStarter, string name, string description, IReadOnlyDictionary<string, object?> properties)
Parameters
jobStarterIStarterIStarter that is starting the runtime job.
namestringJob's runtime name
descriptionstringdescription
propertiesIReadOnlyDictionary<string, object>Job's runtime configuration parameters
Returns
Dispose(bool)
dispose when == true.
protected override void Dispose(bool disposing)
Parameters
disposingbool