简单的OData客户端-如何将代理设置添加到OData客户端



我正在学习本教程https://github.com/simple-odata-client/Simple.OData.Client/wiki/Getting-started-with-Simple.OData.Client在启用代理的公司网络内测试OData API。如何配置OData客户端以便它可以传递代理?

事实证明,OData客户端不需要额外的配置。只需在web.config文件中添加以下行即可。顺便说一下,它是一个.net mvc应用程序。

<system.net>
<defaultProxy useDefaultCredentials="true" />
</system.net>

最新更新