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
name
stringunique (Job) master name
description
stringdescription string
jobType
TypeTarget IJob instance type
properties
IReadOnlyDictionary<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
jobStarter
IStarterIStarter that is starting the runtime job.
name
stringJob's runtime name
description
stringdescription
properties
IReadOnlyDictionary<string, object>Job's runtime configuration parameters
Returns
Dispose(bool)
dispose when == true.
protected override void Dispose(bool disposing)
Parameters
disposing
bool