-
Notifications
You must be signed in to change notification settings - Fork 4
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
Eliminate use of BinaryFormatter in TCP protocol. #127
Comments
General ApproachSimplifyUsing Add Unit TestsThe TCP communication pipeline is not well tested. In particular, we need tests of the messages themselves. This step will be carried out in parallel with the simplification step. Self-Encoding and DecodingMessages should be responsible for their own encoding and decoding. Each message type should have an Encode method, which converts that messages content to a byte array. A static Decode method will create the appropriate message instance from a received byte array. Sending the bytes along with a length prefix and receiving messages from a socket will remain the responsibility of the |
Problems EncounteredA number of problems had to be resolved in implementing this change. I'm listing them here, primarily for the benefit of anyone working on the corresponding NUnit issue nunit/nunit-console#1354. The first few listed were envisioned ahead of time but the rest came to light as I worked. Naturally, I was only able to address each problem as I found it but it may turn out to be more effective to address them in some other order. :-) I'll continue update this list as I find other problems.
...More to come... |
🎉 This issue has been resolved in version 2.0.0-beta4 🎉 The release is available on: |
It's considered unsafe and is expected to go away at some point. See https://github.com/dotnet/designs/blob/main/accepted/2020/better-obsoletion/binaryformatter-obsoletion.md
The text was updated successfully, but these errors were encountered: