We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660ef17 commit b71fa43Copy full SHA for b71fa43
src/Infrastructure/CacheExtensions.cs
@@ -19,24 +19,14 @@ internal static class CacheExtensions
19
private static readonly JsonSerializerOptions Options;
20
21
static CacheExtensions()
22
- {
23
-
24
-#if NET6_0_OR_GREATER
+ {
25
Options = new JsonSerializerOptions
26
{
27
IgnoreReadOnlyFields = true,
28
IgnoreReadOnlyProperties = true,
29
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
30
};
31
-#else
32
- Options = new JsonSerializerOptions
33
34
- IgnoreReadOnlyFields = true,
35
- IgnoreReadOnlyProperties = true,
36
- IgnoreNullValues = true
37
- };
38
-#endif
39
+
40
Options.Converters.Add(new ClaimConverter());
41
}
42
0 commit comments