Class DailyTimeIntervalTriggerSerializer
- Namespace
- Quartz.Serialization.SystemTextJson.Triggers
- Assembly
- Quartz.dll
How a IDailyTimeIntervalTrigger is written to and read from the store's JSON.
public class DailyTimeIntervalTriggerSerializer : TriggerSerializer<DailyTimeIntervalTriggerImpl>, ITriggerSerializer
- Inheritance
-
DailyTimeIntervalTriggerSerializer
- 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
DeserializeFields(DailyTimeIntervalTriggerImpl, JsonElement, JsonSerializerOptions)
Reads back the fields a schedule builder cannot carry. Does nothing unless a trigger type has any, which most do not.
protected override void DeserializeFields(DailyTimeIntervalTriggerImpl trigger, JsonElement jsonElement, JsonSerializerOptions options)
Parameters
triggerDailyTimeIntervalTriggerImpljsonElementJsonElementoptionsJsonSerializerOptions
SerializeFields(Utf8JsonWriter, DailyTimeIntervalTriggerImpl, JsonSerializerOptions)
Writes the trigger's own fields.
protected override void SerializeFields(Utf8JsonWriter writer, DailyTimeIntervalTriggerImpl trigger, JsonSerializerOptions options)
Parameters
writerUtf8JsonWritertriggerDailyTimeIntervalTriggerImploptionsJsonSerializerOptions