Table of Contents

Interface ITriggerSerializer

Namespace
Quartz.Serialization.SystemTextJson.Triggers
Assembly
Quartz.dll

How one trigger type is written to and read from the store's JSON.

public interface ITriggerSerializer

Remarks

Implemented by deriving from TriggerSerializer<TTrigger> rather than directly.

Properties

TriggerTypeName

The discriminator written into the payload, and matched against when reading one.

string TriggerTypeName { get; }

Property Value

string

Methods

CreateScheduleBuilder(JsonElement, JsonSerializerOptions)

Builds the schedule the payload describes, which the converter then hands to a trigger builder.

IScheduleBuilder CreateScheduleBuilder(JsonElement jsonElement, JsonSerializerOptions options)

Parameters

jsonElement JsonElement
options JsonSerializerOptions

Returns

IScheduleBuilder

DeserializeFields(ITrigger, JsonElement, JsonSerializerOptions)

Reads the trigger's own fields back, for the values a schedule builder cannot carry.

void DeserializeFields(ITrigger trigger, JsonElement jsonElement, JsonSerializerOptions options)

Parameters

trigger ITrigger
jsonElement JsonElement
options JsonSerializerOptions

SerializeFields(Utf8JsonWriter, ITrigger, JsonSerializerOptions)

Writes the trigger's own fields. Its key, job key, description, calendar, priority, fire times and data map are written around this by the converter.

void SerializeFields(Utf8JsonWriter writer, ITrigger trigger, JsonSerializerOptions options)

Parameters

writer Utf8JsonWriter
trigger ITrigger
options JsonSerializerOptions