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

标签 c# azure iot azure-iot-hub

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

相关文章:

azure - 将 Azure WebApp 的入站 IP 地址列入白名单?

python - AWS boto3 create_policy() - 指定policyDocument

c# - ASP.NET Core 6 应用无法找到 UseWindowsService

c# - VS2010 在 IntelliSense 中显示来自父接口(interface)/类的摘要信息

azure - 如何检索 Azure.Storage.Blobs 项目的创建日期

python - 在哪里可以找到 Azure Cosmos DB 中的 masterekey 访问的访问日志

c# - 使用BoundField.DataFormatString格式化货币数据,无$'s and negative numbers should be in ( )'s

javascript - 如何在部分回发时保留 ASP 文本框的类

python - 如何按顺序检索 firebase 数据

python - 使用 Flask 从用 python 编写的网页发送 MQTT 消息