使用与odataclient的httpclienthandler
我有一个自定义的httpclienthandler类,该类从httpclienthandler继承,在大多数情况下,它与httpclient一起使用为var client = var client = new httpclient(new CustomHttpClientHandler())我有odataclient而不是httpclient,所以我是否可以将我的httpclient处理程序与odataclient一起使用?
I have a custom HttpClientHandler class which inherits from HttpClientHandler and for most scenarios it is used with the HttpClient as var client = new HttpClient(new CustomHttpClientHandler())
and it is working fine but I have a case where instead of HttpClient I have ODataClient, so is there anyway I can use my httpclient handler with the ODataClient?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
onapplyclienthandler
添加到odataclientsettings
:Add
OnApplyClientHandler
to theODataClientSettings
: