gpt4 book ai didi

c# - Azure sb lite 连接字符串和事件中心兼容名称

转载 作者:行者123 更新时间:2023-12-03 04:31:29 26 4
gpt4 key购买 nike

我正在尝试制作一个 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com