Table of Contents

Class MasterJob

Namespace
Tlabs.JobCntrl.Model.Intern
Assembly
Tlabs.JobCntrl.dll

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 string

unique (Job) master name

description string

description string

jobType Type

Target 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 IStarter

IStarter that is starting the runtime job.

name string

Job's runtime name

description string

description

properties IReadOnlyDictionary<string, object>

Job's runtime configuration parameters

Returns

IJob

Dispose(bool)

dispose when == true.

protected override void Dispose(bool disposing)

Parameters

disposing bool