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

MongoUrlBuilder - Connection String without mongodb:// fails to parse

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.8.3
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      	var csb = new MongoDB.Driver.MongoConnectionStringBuilder();
      	csb.Server = new MongoServerAddress(@"ca-spain-vm");
      	csb.DatabaseName = @"scheduler-1_0";
      	var cs = csb.ConnectionString;
      
      	var urlb = new MongoUrlBuilder(cs); //throws Exception - 
      

      i believe MongoUrlBuilder used to parse the connection sting without an error.

      And/Or add a ConnectionUrl property in a MongoConnectionStringBuilder that would return a mongodb:// url.

      thank you

            Assignee:
            Unassigned Unassigned
            Reporter:
            yschiller Yaniv Schiller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: