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 am experimenting conversion from Orleans 3.x to 8.x using a personal project, and ran into a runtime crash when declaring surrogate types and converters.
When implementing multiple IConverter<,> interfaces in a single converter class, compilation and initialization is fine, but serialization fails with a System.InvalidCastException, due a mis-selection of the ICopier to use.
A simple fix would be to check for the IConverter<,> first type argument when selecting the copier.
Another option would be to discourage using a single converter for multiple surrogate type, in which case an error diagnostic would be helpful.
I am experimenting conversion from Orleans 3.x to 8.x using a personal project, and ran into a runtime crash when declaring surrogate types and converters.
When implementing multiple IConverter<,> interfaces in a single converter class, compilation and initialization is fine, but serialization fails with a System.InvalidCastException, due a mis-selection of the ICopier to use.
A simple fix would be to check for the IConverter<,> first type argument when selecting the copier.
Another option would be to discourage using a single converter for multiple surrogate type, in which case an error diagnostic would be helpful.
Repro code:
The text was updated successfully, but these errors were encountered: