asimmon / ephemeral-mongo

EphemeralMongo is a set of three NuGet packages wrapping the binaries of MongoDB 4, 5 and 6 built for .NET Standard 2.0.
Apache License 2.0
105 stars 14 forks source link

Use directConnection=true instead of connect=direct #61

Open wassim-k opened 1 month ago

wassim-k commented 1 month ago

MongoDB C# Driver v3.0 was just released and EphemeralMongo no longer works in single node replica set mode. I've narrowed it down to connect=direct parameter, it appears that's no longer supported by the client and it just times out. Replacing it with directConnection=true seems to fix it.