如何在Simple.OData.Client中進行證書認證?我有調用api時想使用的X509Certificate2。我使用.net框架4.6。 我做了一些搜索,我知道可以通過HttpClientHandler添加。但我無法弄清楚如何做到這一點。以下是我的代碼。 void foo()
{
var clientSettings = new ODataClientSettings("");
在Microsoft oData v4代理客戶端中,可以將驗證令牌添加到每個請求中。它可以通過以下方式實現: var container = new Default.Container(new Uri(http://localhost:9000/));
//Registering the handle to the BuildingRequest event.
container.Build