Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility mode for serializing #20

Closed
mfakane opened this issue Mar 16, 2017 · 5 comments
Closed

Compatibility mode for serializing #20

mfakane opened this issue Mar 16, 2017 · 5 comments

Comments

@mfakane
Copy link

mfakane commented Mar 16, 2017

Hi,
I was wondering if I could use this library to communicate with an app which only supports the old spec that doesn't have things like str 8, bin 8, etc.
It would be so nice if this library could have a compatibility mode.

@neuecc
Copy link
Member

neuecc commented Mar 17, 2017

It should be resolved by composite resolver and ther priority.
However, String is directly read/write in object serializer generation for optimization.
Therefore, I have to find a compromise.

By the way, do you have to use an older version of the serializer?

@mfakane
Copy link
Author

mfakane commented Mar 18, 2017

Thank you for your reply.
Well, when if I write a new app, I'll definitely use the new format; This time however, the target app is not under my control, so I can't change the serializer used.

I'll try writing a custom formatter for a workaround.

neuecc added a commit that referenced this issue Mar 25, 2017
@neuecc
Copy link
Member

neuecc commented Mar 25, 2017

Thank you, I've stoppped embed read/write for string and DateTime and add OldSpecResolver.
It routes new bin*, str* format to old raw format.

@neuecc
Copy link
Member

neuecc commented Mar 25, 2017

I've fixed and released 1.1.0.

@neuecc neuecc closed this as completed Mar 25, 2017
@mfakane
Copy link
Author

mfakane commented Mar 25, 2017

Thank you very much for adding OldSpecResolver!
I'll try it out right away.

AbhitejJohn pushed a commit to AbhitejJohn/MessagePack-CSharp that referenced this issue Jan 19, 2019
Fix exceptions on test or product failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants