[CSHARP-1009] Consider supporting JSON based MongoClient configuration Created: 26/Jun/14  Updated: 01/Apr/19  Resolved: 01/Apr/19

Status: Closed
Project: C# Driver
Component/s: Configuration
Affects Version/s: 1.9.1
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Robert Stam Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Our current mechanisms for configuring a MongoClient are:

1. Use a "mongodb://..." style URL
2. Configure a MongoClientSettings object in code

It would be useful to support a JSON based configuration option, where a JSON document could be used to supply the values for the MongoClientSettings.

This could have a number of interesting benefits:

1. It could represent nested values better than a linear URL can
2. Configurations could be built up by merging partial JSON documents that each contain part of the configuration
3. Configurations could be stored in MongoDB

Implementing this feature should be dependent on all drivers agreeing on the format of the JSON configuration document so that configurations can be shared across drivers.


Generated at Wed Feb 07 21:38:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.