Click or drag to resize

JobSettingAttribute Class

Indicates that a property should be added to the job settings for a job.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Ookii.Jumbo.Jet.JobsJobSettingAttribute

Namespace: Ookii.Jumbo.Jet.Jobs
Assembly: Ookii.Jumbo.Jet (in Ookii.Jumbo.Jet.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public sealed class JobSettingAttribute : Attribute

The JobSettingAttribute type exposes the following members.

Constructors
 NameDescription
Public methodJobSettingAttribute Initializes a new instance of the JobSettingAttribute class that will use "JobBuilderClassName.PropertyName" as the setting's key.
Public methodJobSettingAttribute(String) Initializes a new instance of the JobSettingAttribute class with the specified key.
Top
Properties
 NameDescription
Public propertyKey Gets the key used for the setting in the settings dictionary.
Public propertyTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Top
Methods
 NameDescription
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

You can apply this attribute to properties of a job runner class that inherits from BaseJobRunner. Call the ApplyJobPropertiesAndSettings(JobConfiguration) method after creating your JobConfiguration to add the properties tot the job settings.

The JobBuilderJob class automatically do this after the JobConfiguration has been created.

See Also