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

Default directConnection to false and remove ConnectMode logic

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 3.0.0
    • Affects Version/s: None
    • Component/s: Connectivity
    • None
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      Old connection mode 
      MongoClientSetting.ConnectionMode
      MongoClientSetting.ConnectionModeSwitch
      uri "connect" option are removed.

      Now the only configuration option available is DirectConnection property.
      The topology type is discovered automatically, unless DirectConnection is set to true, 

      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?
      3.0

      Show
      1. What would you like to communicate to the user about this feature? Old connection mode  MongoClientSetting.ConnectionMode MongoClientSetting.ConnectionModeSwitch uri "connect" option are removed. Now the only configuration option available is DirectConnection property. The topology type is discovered automatically, unless DirectConnection is set to true,  2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to? 3.0

      In 2.12.0 support for directConnection was added, but we didn't change the default behavior of the driver as required by the spec. We should do it in the next major release.

       

      UPDATE: in the scope of this ticket, we may also remove depricated `connectMode` and related logic.

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            dmitry.lukyanov@mongodb.com Dmitry Lukyanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: