c# - Azure IoT 中心版本 1.37 CreateFromConnectionString NotImplementedException
问题描述
我创建了一个引用自https://github.com/Azure-Samples/Azure-IoT-Samples-Xamarin的示例应用程序,该应用程序与我的 Azure IoTHub 连接。提供了 ConnectionString 和 deviceId。该代码适用于 Microsoft.Azure.Devices.Client 方法的 1.25 版CreateFromConnectionString(String, TransportType).
但是,此方法在最新版本 Microsoft.Azure.Devices.Client 1.37 上不起作用
System.NotImplementedException:方法或操作未实现。在 System.Globalization.CompareInfo.IndexOfCore(System.String 源,System.String 目标,System.Int32 startIndex,System.Int32 计数,System.Globalization.CompareOptions 选项,System.Int32* matchLengthPtr)[0x00006] 在 /Library/Frameworks /Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/corefx/CompareInfo.cs:89 在 System.Globalization.CompareInfo.IndexOf (System.String 源,System.String 值,系统.Int32 startIndex,System.Int32 计数,System.Globalization.CompareOptions 选项,System.Int32* matchLengthPtr) [0x00071] 在 /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx /src/Common/src/CoreLib/System/Globalization/CompareInfo.cs:957 在 System.String.ReplaceCore (System.String oldValue, System.
还在 git repo 上发布了问题https://github.com/Azure-Samples/Azure-IoT-Samples-Xamarin/issues/3
解决方案
推荐阅读
- python - Python中数据集的URL
- .net - 从 LINQ 到 SQL Query Core 3.1 的“无法将 ..SQLExpression.SQLParameterExpression”转换为 SQLExpression.SQLConstantExpression
- regex - 用于 bigquery 的正则表达式在 /api 之后返回所有路径
- tensorflow - Keras 词嵌入的 tfidf 加权平均值
- google-sheets - 查询 google sheet =>“null”在这个公式中是如何工作的?
- c# - 没有“溢出”的阴影
- facebook - 有什么方法可以通过 api 更新 Facebook 帐户的付款方式?
- android - 在 Android 应用中捕捉 Google 助理的回复
- scala - 有没有更好的方法从可用的分区列名中读取查找 HDFS 分区文件夹?
- microsoft-teams - 创建文档提供程序以与 Microsoft Teams 集成