Csla 4.0.0.0 - MyCustomMobileFormatter #4708
-
== QUESTION == == My Issue === ProductA_ServerApp references Project_Dto ProductB_ServerApp references Project_Dto ProductA and ProductB are related and thus Project_Dto have objects that are shared between the two. It might be the case that ... I would like ProductA ClientApp using Project_Dto version 5.0 to still be able to communicate with ... The default formatter MobileFormatter cares that the versions are different between the Client and Server despite the contracts being the same. If I could inject MyCustomMobileFormatter into the Serialization / Deserialzation I think I could make it ignore versions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If I understand correctly, you have created your own version of MobileFormatter and you are using that as the serializer instead of MobileFormatter? I think that we added an option to a later version of MobileFormatter so it can ignore the version number in the fully qualified type names. You might choose to use a later version of CSLA to solve the issue. There was a long period of time where it was essentially unrealistic to replace the formatter, because I'd hard-coded the use of MobileFormatter in a number of places in the codebase. That was unfortunate, and is also something that has been addressed in more recent versions. However, iirc, there is still an issue in I suspect that, for you to use a custom serializer in CSLA 4, you'll have to fork and fix the old codebase to:
|
Beta Was this translation helpful? Give feedback.
If I understand correctly, you have created your own version of MobileFormatter and you are using that as the serializer instead of MobileFormatter?
I think that we added an option to a later version of MobileFormatter so it can ignore the version number in the fully qualified type names. You might choose to use a later version of CSLA to solve the issue.
There was a long period of time where it was essentially unrealistic to replace the formatter, because I'd hard-coded the use of MobileFormatter in a number of places in the codebase. That was unfortunate, and is also something that has been addressed in more recent versions.
However, iirc, there is still an issue in
UndoableBase
where a…