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

CSHARP-3985: Support multiple SerializerRegistries #1592

Draft
wants to merge 51 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
5a93d57
First test
papafe Jan 8, 2025
bc33071
Revert "First test"
papafe Jan 8, 2025
5e94e62
Added manager
papafe Jan 8, 2025
a317994
Delegating all the methods to the BsonSerializationManager
papafe Jan 8, 2025
0e2f7b9
Added interface
papafe Jan 8, 2025
a051d18
Small fix
papafe Jan 8, 2025
bb60887
Rename
papafe Jan 10, 2025
56a9b7e
Added internal interface
papafe Jan 10, 2025
3f634d5
Improvements
papafe Jan 13, 2025
550eb97
Initial use of domain
papafe Jan 13, 2025
d2e1746
Fix
papafe Jan 13, 2025
8b14426
Added comments
papafe Jan 13, 2025
3dadb07
Test with multiple interfaces
papafe Jan 15, 2025
cf05d41
Improved interfaces
papafe Jan 15, 2025
35f461a
Fix to interface
papafe Jan 15, 2025
7c2beb3
Small renaming
papafe Jan 15, 2025
3ad811e
Added comments
papafe Jan 27, 2025
0ae768c
Finished comments in the Bson lib
papafe Jan 27, 2025
01330fd
Corrected conventions
papafe Jan 27, 2025
7bec37f
Correction
papafe Jan 27, 2025
bb395b0
Corrected convention tests
papafe Jan 27, 2025
d7756c6
Removed multiple interfaces plus more fixes
papafe Jan 27, 2025
70f351b
More improvements
papafe Jan 27, 2025
cc40c72
Small fixes
papafe Jan 27, 2025
04d45fa
Small fixes
papafe Jan 27, 2025
8305dc1
improvements
papafe Jan 28, 2025
402a889
Small fix
papafe Jan 30, 2025
6d2faf9
Various fixes
papafe Jan 30, 2025
5ac0c06
First test passing
papafe Jan 30, 2025
7628f31
Small fixes
papafe Jan 30, 2025
3f5a047
Some saving
papafe Jan 30, 2025
9ccfe7a
Naming correction
papafe Feb 3, 2025
d3973e1
Added test and removed comment
papafe Feb 3, 2025
a587d6d
Improved tests
papafe Feb 3, 2025
856cfb8
Improved deserialization to work as serialization
papafe Feb 3, 2025
2cc6a8d
Trying to fix class map
papafe Feb 4, 2025
5742541
Fixed class
papafe Feb 4, 2025
d6d9ddc
Various corrections
papafe Feb 4, 2025
3b27b43
Moved class map to another file
papafe Feb 4, 2025
98682bb
Removed comments
papafe Feb 4, 2025
dc33112
Passing domain in serializer registry
papafe Feb 4, 2025
a45b027
Small improvements
papafe Feb 5, 2025
3f9c37c
Small corrections
papafe Feb 5, 2025
f0487d3
Renamin to serialization domain
papafe Feb 10, 2025
2ed6fb6
Small naming correction
papafe Feb 10, 2025
0074837
Fixed tests
papafe Feb 10, 2025
9011589
removed comment
papafe Feb 11, 2025
8b15445
Added convention registry
papafe Feb 12, 2025
2157ae8
Some improvements
papafe Feb 12, 2025
ab7c5de
Removed domain from translation context
papafe Feb 18, 2025
e683791
Made something internal
papafe Feb 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Corrected convention tests
papafe committed Jan 27, 2025
commit bb395b0c098ef9cc0dcc73400185071fc6cf8eb1
5 changes: 5 additions & 0 deletions tests/MongoDB.Bson.Tests/Jira/CSharp310Tests.cs
Original file line number Diff line number Diff line change
@@ -44,6 +44,11 @@ public void Apply(BsonMemberMap memberMap)
memberMap.SetDefaultValue(Guid.Empty);
}
}

public void Apply(BsonMemberMap memberMap, IBsonSerializationDomain domain)
{
throw new NotImplementedException();
}
}

private static void InitializeSerialization()
Original file line number Diff line number Diff line change
@@ -169,6 +169,11 @@ public void Apply(BsonMemberMap memberMap)
RunCount++;
RunOrder = _orderIndexProvider();
}

public void Apply(BsonMemberMap memberMap, IBsonSerializationDomain domain)
{
throw new NotImplementedException();
}
}

private class TrackingAfterConvention : IPostProcessingConvention, ITrackRun
@@ -194,6 +199,11 @@ public void PostProcess(BsonClassMap classMap)
RunCount++;
RunOrder = _orderIndexProvider();
}

public void PostProcess(BsonClassMap classMap, IBsonSerializationDomain domain)
{
throw new NotImplementedException();
}
}
}
}