Table of Contents

Interface IJobInputSerializer

Namespace
Quartz.Extensibility
Assembly
Quartz.dll

Turns an IJob<TInput>'s input into the string the scheduler stores under JobInput, and back again when the job runs.

public interface IJobInputSerializer

Remarks

This is a different job from IObjectSerializer's. That one owns the store's own shapes — triggers, calendars, the job data map itself — and answers a persistent job store. This one owns a single application-defined payload, is asked for it by the scheduler on the way in and by the job on the way out, and is used whichever store the scheduler runs on, including the in-memory one.

A string rather than bytes, for the reason JobInput gives: it is what every path the value can take carries unchanged.

The interface carries no trimming annotations, exactly as IObjectSerializer carries none. An annotation on an interface member has to be repeated by every implementation or the implementation reports IL2046, and an implementation written outside Quartz cannot be made to.

Methods

Deserialize<TInput>(string)

Deserializes a job's input from what Serialize(object) stored.

TInput? Deserialize<TInput>(string payload)

Parameters

payload string

The stored payload, always non-null.

Returns

TInput

Type Parameters

TInput

Serialize(object)

Serializes a job's input for storage.

string Serialize(object input)

Parameters

input object

The input to serialize, always non-null.

Returns

string

See Also