Comment an adding HashtableConverter - #227
Merged
Merged
Conversation
This conveter causes more problems than solves
Contributor
|
I am trying to solve this problem without modifying the CoreRemoting code in the following way: new BsonSerializerAdapter(new BsonSerializerConfig([
new ObjectTypeSlotConverter(),
new DataSetDiffGramJsonConverter(),
new RegionInfoConverter(),
new EncodingConverter(),
new IPAddressConverter(),
new IPEndPointConverter(),
new IsoDateTimeConverter(),
//new HashtableConverter()
]) { AddCommonJsonConverters = false });The idea is to select only your own converters. There is no working way to influence the converters collection. |
Contributor
Collaborator
|
Hello! Looks like this PR breaks because of the failing tests for the hashtable serialization. |
…tom HashtableConverter is enabled.
sancheolz
reviewed
Aug 7, 2026
| { | ||
| var config = new BsonSerializerConfig(); | ||
| config.AddCommonJsonConverters = true; | ||
| config.JsonConverters.Add(new HashtableConverter()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Can you please remove HastableConveter from the adapter settings, as it does solve a lot of problems, but it also causes some serious ones like #224 . That would help us to switch directly to your package.
P.S. Previously, on revision 1.2.3, the behavior of the hashtable was acceptable and we could adapt to it, but after adding the HastableConveter, we are unable to handle its behavior.
Thank you in advance! 👉👈(ಥ_ಥ)