开发者

MongoDB c# driver - Connect via proxy

开发者 https://www.devze.com 2023-04-01 11:47 出处:网络
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.

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 开发者_Go百科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.

0

精彩评论

暂无评论...
验证码 换一张
取 消