We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7628f31 commit 3f5a047Copy full SHA for 3f5a047
src/MongoDB.Bson/BsonExtensionMethods.cs
@@ -121,7 +121,7 @@ public static byte[] ToBson(
121
{
122
using (var bsonWriter = new BsonBinaryWriter(memoryStream, writerSettings ?? BsonBinaryWriterSettings.Defaults))
123
124
- var context = BsonSerializationContext.CreateRoot(bsonWriter, configurator).With(c => c.Domain = domain);
+ var context = BsonSerializationContext.CreateRoot(bsonWriter, configurator);
125
serializer.Serialize(context, args, obj);
126
}
127
return memoryStream.ToArray();
0 commit comments