无法转换类型为“MyService.EndpointConfig”的对象输入“NServiceBus.Host.IConfigureThisEndpoint”

发布于 2024-08-16 19:16:50 字数 107 浏览 3 评论 0原文

我在 NServiceBus 方面遇到问题:我定义了一个实现 IConfigureThisEndpoint 的端点配置,但是当我使用通用主机运行该服务时,它抱怨该类型无法转换为命名空间。知道为什么吗?

I have a problem with NServiceBus: I have defined an endpoint config that implements IConfigureThisEndpoint, but when I run the service with a generic host, it complains that the type cannot be cast to the namespace. Any idea why?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

给不了的爱 2024-08-23 19:16:50

在我看来,您在配置文件中指定了“EndpointConfigurationType”。您能否验证这是真的,如果是,请尝试删除它,看看它是否能解决您的问题?

Sounds to me that you have "EndpointConfigurationType" specified in the config file. Can you verify is that is true, if so try to remove it and see if it solves your problem?

忆伤 2024-08-23 19:16:50

事实证明,NServiceBus 中有两个名为IConfigureEndpoint的命名空间。我用错了 - 必须引用 ServiceHost EXE。

As it turns out, there are two namespaces called IConfigureEndpoint in NServiceBus. I was using the wrong one - had to reference the ServiceHost EXE instead.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文