找不到类型或名称空间EventProcessorClient

问题描述 投票:0回答:2

我从使用.Net Core的事件中心开始,并且在尝试编写与官方MS文档(https://docs.microsoft.com/en-us/azure/event-hubs/get-started-dotnet-standard-send-v2)中相同的代码时面临一个非常特殊的问题。尽管我使用的事件接收器代码包含命名空间,即Azure.Messaging.EventHubs,但会引发错误。我在哪里错了?

enter image description here

azure azure-eventhub
2个回答
1
投票

请确保您已按照以下步骤导入了正确的Nuget程序包。

enter image description here


0
投票

您需要安装Azure.Messaging.EventHubs.Processor作为项目的依赖项。即使上面的答案是正确的,我也只是附加了链接。

© www.soinside.com 2019 - 2024. All rights reserved.