我正在尝试制作一个 UWP 应用程序来从 Azure IoT 中心接收消息,并且我找到了一些使用 Azure sb lite 的示例代码,但问题出在这些代码行中:
var factory = MessagingFactory.CreateFromConnectionString(Config.ConnectionStringAzureSbLite);
var client = factory.CreateEventHubClient(Config.EventHubCompatibleName);
在哪里可以找到我的 ConnectionStringAzureSbLite
以及我的 EventHubCompatibleName
是什么?
最佳答案
您可以从 Azure 门户获取这些内容。在“消息”设置中查看 IoT 中心的设置。请参阅此处的“如何从事件中心兼容终结点读取”部分:https://azure.microsoft.com/en-us/documentation/articles/iot-hub-devguide/
关于c# - Azure sb lite 连接字符串和事件中心兼容名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36067567/