EasyCaching
EasyCaching copied to clipboard
EasyCaching.Serialization.SystemTextJson 1.6.1 里的EasyCachingJsonSerializerOptions 属性都是只读的,无法设置值
Description
EasyCaching.Serialization.SystemTextJson 1.6.1 里的EasyCachingJsonSerializerOptions 属性都是只读的,无法设置值
Steps to Reproduce
- option.WithSystemTextJson((EasyCachingJsonSerializerOptions opt) => { },"Json");
- the EasyCachingJsonSerializerOptions all properties are readonly,can`t set value;
@DeliciousExtra Thanks for your interest in this project.
The properties of EasyCachingJsonSerializerOptions was designed to readonly.
You should use WithSystemTextJson(this EasyCachingOptions options, Action<JsonSerializerOptions> jsonSerializerSettingsConfigure, string name)
to replace.
I didnt find the usage in the document, thx for your reply,it
s very helpful