使用Sitecore 9.1.1,我尝试使用以下示例代码通过控制台应用程序连接到xconnect服务器:https://doc.sitecore.com/developers/90/sitecore-experience-platform/en/create,-retrieve,-and-search-contact-and-interaction-data.html
我已经使用NuGet(Sitecore MyGet)来检索正在使用的库:
使用Sitecore.XConnect;
使用Sitecore.XConnect.Client;
使用Sitecore.XConnect.Schema;
使用系统;
使用System.Threading.Tasks;
使用Sitecore.XConnect.Client.WebApi;
使用Sitecore.Xdb.Common.Web;
使用Sitecore.XConnect.Collection.Model;
使用System.Collections.Generic;
使用Sitecore.Xdb.Common.Web;
但是......
在Visual Studio 2019中, CertificateWebRequestHandlerModifierOptions 和 CertificateWebRequestHandlerModifier 用红线标记为“找不到命名空间,您是否缺少程序集。”
我已经在Google上搜索了,无法找到这些类所在的库。有人可以告诉我吗?
答案 0 :(得分:1)
结果证明这两个类在Sitecore 9.1.1中已重命名。命名空间Sitecore.Xdb.Common.Web:
CertificateWebRequestHandlerModifierOptions =证书 Http ClientHandlerModifierOptions
CertificateWebRequestHandlerModifier = CertificateHttpClientHandlerModifier