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
If I'm interpreting the type name in the exception correctly:
Orleans.Serialization.CodecNotFoundException : Could not find a copier for type <>z__ReadOnlySingleElementList`1[ItemType].
I'd assume that Roslyn generates a type for the initializer that implements the IReadOnlyList, but not with a known dotnet library type.
Which means Orleans won't ever be able to generate a serializer for it unless there's a fallback for IReadOnlyList<T> (in this case)?
Can I attempt to write a fallback serializer (or surrogate) somewhere, and how do I get it registered if the <>z__ReadOnlySingleElementList1` can't be referenced?
The text was updated successfully, but these errors were encountered:
Currently, collection interfaces like
IReadOnlyList<T>
can be serialized if the actual implementation isList<T>
,T[]
, ...But this will break the serialization:
Frequently encountered when trying something like this in a unit test:
while these would serialize perfectly:
If I'm interpreting the type name in the exception correctly:
I'd assume that Roslyn generates a type for the initializer that implements the IReadOnlyList, but not with a known dotnet library type.
Which means Orleans won't ever be able to generate a serializer for it unless there's a fallback for
IReadOnlyList<T>
(in this case)?Can I attempt to write a fallback serializer (or surrogate) somewhere, and how do I get it registered if the
<>z__ReadOnlySingleElementList
1` can't be referenced?The text was updated successfully, but these errors were encountered: