如何使用 NServiceBus.Host.exe 指定端点类?
我有一个使用新的建模工具创建的解决方案。这给了我 单个解决方案中的两个完整“端点”。
现在,当我通过自动构建运行它们时,我在同一个中有两个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用键
EndpointConfigurationType
和值为该类型的程序集限定名称的值,将配置条目添加到您的应用设置中。Add a config entry to your app settings with the key
EndpointConfigurationType
and the value being the assembly qualified name of the type.