Table of Contents

Class NewtonsoftJsonConfigurationExtensions

Namespace
Quartz
Assembly
Quartz.Serialization.Newtonsoft.dll

Selects Newtonsoft.Json as a persistent store's serializer.

public static class NewtonsoftJsonConfigurationExtensions
Inheritance
NewtonsoftJsonConfigurationExtensions
Inherited Members

Methods

UseNewtonsoftJsonSerializer(IPersistentStoreBuilder, Action<NewtonsoftJsonSerializerRegistry>?, bool)

Use Newtonsoft JSON as data serialization strategy.

public static IPersistentStoreBuilder UseNewtonsoftJsonSerializer(this IPersistentStoreBuilder builder, Action<NewtonsoftJsonSerializerRegistry>? configure = null, bool registerTriggerConverters = false)

Parameters

builder IPersistentStoreBuilder

The persistent store being configured.

configure Action<NewtonsoftJsonSerializerRegistry>

Optional registration of serializers for custom trigger and calendar types, on the same NewtonsoftJsonSerializerRegistry the serializer resolves through. What the callback registers belongs to this scheduler alone — it is not shared with any other scheduler in the process.

registerTriggerConverters bool

Whether to register optimized default trigger converters for persistence storage. These are compatible with the System.Text.Json serializer, but might not work if you have existing data in database which has been serialized with old behavior. Defaults to false.

Returns

IPersistentStoreBuilder