Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3537 Switch to DefaultContractResolver #4521

Merged
merged 1 commit into from
Oct 15, 2023
Merged

3537 Switch to DefaultContractResolver #4521

merged 1 commit into from
Oct 15, 2023

Conversation

4lexKislitsyn
Copy link
Contributor

Switch from CamelCasePropertyNamesContractResolver to DefaultContractResolver. CamelCasePropertyNamesContractResolver has a shared cache for contracts between instances. If any Dictionary<string, string> is previously serialized with settings to process dictionary keys, ActivityDefinitionProperty.Expressions will also be serialized with dictionary key processing. It's better to use DefaultContractResolver, which has a cache for each instance.

@4lexKislitsyn 4lexKislitsyn changed the title #3537 Switch to DefaultContractResolver 3537 Switch to DefaultContractResolver Oct 11, 2023
@sfmskywalker
Copy link
Member

Thanks for having figured that out, I had no idea about this.

@sfmskywalker sfmskywalker merged commit c4d0a8e into elsa-workflows:master Oct 15, 2023
7 checks passed
@4lexKislitsyn 4lexKislitsyn deleted the 3537-switch-contract-resolver branch October 31, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants