Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-929

New MongoClient ctor

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Trivial - P5 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"));

      Attachments

        Activity

          People

            Unassigned Unassigned
            peter.garafano@mongodb.com Peter Garafano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: