Class CronTriggerSerializer
- Namespace
- Quartz.Serialization.SystemTextJson.Triggers
- Assembly
- Quartz.dll
How a ICronTrigger is written to and read from the store's JSON.
public class CronTriggerSerializer : TriggerSerializer<ICronTrigger>, ITriggerSerializer
- Inheritance
-
CronTriggerSerializer
- Implements
- Inherited Members
Remarks
Public and unsealed on purpose: a trigger deriving from the built-in implementation pairs with a
serializer deriving from this one, overriding SerializeFields and DeserializeFields
and calling base so the built-in fields keep their stored shape.
Properties
TriggerTypeName
The discriminator written into the payload, and matched against when reading one.
public override string TriggerTypeName { get; }
Property Value
Methods
CreateScheduleBuilder(JsonElement, JsonSerializerOptions)
Builds the schedule the payload describes, which the converter then hands to a trigger builder.
public override IScheduleBuilder CreateScheduleBuilder(JsonElement jsonElement, JsonSerializerOptions options)
Parameters
jsonElementJsonElementoptionsJsonSerializerOptions
Returns
SerializeFields(Utf8JsonWriter, ICronTrigger, JsonSerializerOptions)
Writes the trigger's own fields.
protected override void SerializeFields(Utf8JsonWriter writer, ICronTrigger trigger, JsonSerializerOptions options)
Parameters
writerUtf8JsonWritertriggerICronTriggeroptionsJsonSerializerOptions