如何使用 NServiceBus.Host.exe 指定端点类?

发布于 2025-01-03 05:01:57 字数 542 浏览 4 评论 0原文

我有一个使用新的建模工具创建的解决方案。这给了我 单个解决方案中的两个完整“端点”。

现在,当我通过自动构建运行它们时,我在同一个中有两个 dll 实现 IConfigureThisEndpoint 的文件夹。

如果我只是运行 NServiceBus.Host.exe \install (以获取 Windows 服务),它会给出 我遇到了(预期的)错误,即有多个类可以使用。

我做了一些搜索,Udi 在这里指出: http://tech.groups.yahoo.com/group/nservicebus/message/3937 “你可以 指定您想要加载哪个类并避免这些问题 - 作为服务器 pub/sub 示例中的项目显示了“。

我查看了 pub/sub 示例,我看不到如何指定我的类(位于 至少不在命令行上)。

有没有办法避免修改我的构建以将文件放入 单独的文件夹? (对我来说这并不是一件容易的事。)

I have have a solution that I created with the new modeler tools. This gave me
two full "endpoints" in a single solution.

Now when I run them through my automated build, I have two dlls in the same
folder that implement IConfigureThisEndpoint.

If I just run NServiceBus.Host.exe \install (to get a Windows Service), it gives
me the (expected) error that there is more than one class that can be used.

I did some searching and Udi states here:
http://tech.groups.yahoo.com/group/nservicebus/message/3937 that "You can
specify which class you want loaded and avoid these issues - as the server
project in the pub/sub sample shows".

I looked at the pub/sub sample and I can't see how I can specify my class (at
least not at the command line).

Is there a way to get around having to modify my build to put the files in
separate folders? (Not really an easy task for me.)

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

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

发布评论

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

评论(1

挥剑断情 2025-01-10 05:01:57

使用键 EndpointConfigurationType 和值为该类型的程序集限定名称的值,将配置条目添加到您的应用设置中。

Add a config entry to your app settings with the key EndpointConfigurationType and the value being the assembly qualified name of the type.

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