Click or drag to resize

SettingsDictionaryGetJobOrStageSettingT Method (JobConfiguration, StageConfiguration, String, T)

Gets a setting with the specified type and default value, checking first in the stage settings and then in the job settings.

Namespace:  Ookii.Jumbo.Jet.Jobs
Assembly:  Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 2.0.0
Syntax
public static T GetJobOrStageSetting<T>(
	JobConfiguration job,
	StageConfiguration stage,
	string key,
	T defaultValue
)

Parameters

job
Type: Ookii.Jumbo.Jet.JobsJobConfiguration
The job configuration.
stage
Type: Ookii.Jumbo.Jet.JobsStageConfiguration
The stage stage configuration.
key
Type: SystemString
The name of the setting.
defaultValue
Type: T
The value to use if the setting is not present in the SettingsDictionary.

Type Parameters

T
The type of the setting.

Return Value

Type: T
The value of the setting, or defaultValue if the setting was not present in either the stage or job settings.
See Also