Details
-
New Feature
-
Resolution: Won't Fix
-
Trivial - P5
-
None
-
None
-
None
-
None
Description
Add a new constructor for MongoClient that will take a string formatted for string.Format() and params string[] to format into the connection string.
Example:
new MongoClient("mongodb://{0}:27017?replicaSet={1}", Environment.MachineName, "MyReplSet");
|
would replace
new MongoClient(string.Format("mongodb://{0}:27017?replicaSet={1}", Environment.MachineName, "MyReplSet"));
|