elsa-core/src/modules/Elsa.Common
Sipke Schoorstra 1e6aee4bba
Refactor serializer options usage and enhance caching in workflow serialization (#5275)
* Refactor serializer options usage and enhance caching in workflow serialization

This update refactors multiple classes dealing with JSON serialization. The usage of serializer options now includes a caching mechanism to avoid unnecessary recomputation. 'CreateOptions' method is replaced by a 'GetOptions' method that considers cached options. Classes are adjusted to clone options when necessary, ensuring a fresh and accurate context each time.

* Refactor serializer options in workflow serialization

This commit refactors how options are handled for JSON serializers in Elsa's workflow modules. JSON serializer options are now handled more efficiently, by directly using the provided options in `JsonIgnoreCompositeRootConverter` and setting up internal serializer options in `ObjectConverter`. Unnecessary methods related to the cloning of serializer options have been removed.
2024-04-25 11:42:48 +02:00
..
Contracts Refactor serializer options usage and enhance caching in workflow serialization (#5275) 2024-04-25 11:42:48 +02:00
Converters Add DecimalJsonConverter and update usage 2024-03-14 09:59:22 +01:00
DistributedLocks/Noop Add new docker-compose files, new activities and services 2024-03-24 20:28:19 +01:00
Entities Dapper persistence provider (#4109) 2023-06-06 20:49:14 +02:00
Exceptions Webhooks (#3598) 2023-01-05 13:55:08 +01:00
Extensions Refactor serializer options usage and enhance caching in workflow serialization (#5275) 2024-04-25 11:42:48 +02:00
Features Add caching to workflow runtime and workflow management stores (#5174) 2024-04-10 11:51:40 +02:00
Models Update VersionOptions.LastestAndPublished to set correct property (#5036) 2024-03-05 11:34:52 +01:00
Serialization Refactor serializer options usage and enhance caching in workflow serialization (#5275) 2024-04-25 11:42:48 +02:00
Services Add caching to workflow runtime and workflow management stores (#5174) 2024-04-10 11:51:40 +02:00
Elsa.Common.csproj Add caching to workflow runtime and workflow management stores (#5174) 2024-04-10 11:51:40 +02:00
FodyWeavers.xml Prepare projects for packaging 2022-11-03 21:40:23 +01:00