简体   繁体   中英

MongoDB c# driver - Connect via proxy

There is a Windows Forms application, which uses MongoDB driver. I would like the MongoDB driver to make all its connection via a specified proxy.

Should there be a way to modify app.config to achieve it? Can I define it in the driver itself?

Take a look at the MongoDB docs on connection strings: http://www.mongodb.org/display/DOCS/CSharp+Driver+Tutorial#CSharpDriverTutorial-Connectionstrings

How your particular application stores this connection string isn't defined by MongoDB. It doesn't use app.config unless your code uses it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM