You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it is a bit different from #40 and more important. For example there is a lot of internal classes in Akka.NET which should be serialized, but MsgPack does not support it
Thanks, I'll add TypelessContractlessStandardResolverAllowPrivate.
It is now possible to assemble it all.
IFormatterResolver[]resolvers=new[]{NativeDateTimeResolver.Instance,// Native c# DateTime format, preserving timezoneBuiltinResolver.Instance,// Try BuiltinAttributeFormatterResolver.Instance,// Try use [MessagePackFormatter]DynamicEnumResolver.Instance,// Try EnumDynamicGenericResolver.Instance,// Try Array, Tuple, CollectionDynamicUnionResolver.Instance,// Try Union(Interface)DynamicObjectResolver.Instance,// Try Object// You can change to DynamicContractlessAllowPrivateResolverDynamicContractlessObjectResolver.Instance,// Serializes keys as stringsTypelessObjectResolver.Instance};
Let me think about whether to include private constructors.
There is also a way to fall back to GetUninitializedObject if a constructor is not found (Utf8Json does that)
This issue was filed against a 1.x version of the library. A lot of changes have been made to this area in 2.0 and I suspect this is fixed or no longer applies. Please retry your scenario on 2.0 and comment here if you think the issue should be re-opened.
Activity
neuecc commentedon Oct 9, 2017
I've release
v1.7.0, maybe it supports internal, too.alexvaluyskiy commentedon Oct 11, 2017
@neuecc Yes, internal members works now. thanks. This issue could be closed.
Btw, there is no private replacement for
TypelessContractlessStandardResolver. What is the best way to replace it? Is it OK?Also classes with private or internal constructors still don't work
neuecc commentedon Oct 11, 2017
Thanks, I'll add
TypelessContractlessStandardResolverAllowPrivate.It is now possible to assemble it all.
Let me think about whether to include private constructors.
There is also a way to fall back to GetUninitializedObject if a constructor is not found (Utf8Json does that)
AArnott commentedon Dec 13, 2019
This issue was filed against a 1.x version of the library. A lot of changes have been made to this area in 2.0 and I suspect this is fixed or no longer applies. Please retry your scenario on 2.0 and comment here if you think the issue should be re-opened.
Bump coverlet.msbuild from 2.9.0 to 3.0.2 (MessagePack-CSharp#88)