【发布时间】:2011-11-08 06:20:08
【问题描述】:
我正在尝试获取最新的 nservicebus 和城堡温莎:
我的问题是,现在运行的确切代码 - 不再运行:
var _container = new WindsorContainer();
NServiceBus.Configure.With()
.CastleWindsorBuilder(_container)
.XmlSerializer()
.MsmqTransport()
.UnicastBus()
.DoNotAutoSubscribe();
是的 - 这是 3.0 源代码中仍然存在的旧示例代码
我要运行的实际代码是:
var container = new WindsorContainer(new
XmlInterpreter("Windsor.config"));
container.Install(FromAssembly.This());
Configure.With()
.Log4Net()
.XmlSerializer()
.CastleWindsorBuilder(container)
.MsmqTransport()
.IsTransactional(true)
.PurgeOnStartup(false)
.MsmqSubscriptionStorage()
.UnicastBus()
.ImpersonateSender(false)
.LoadMessageHandlers()
.IsTransactional(true)
.CreateBus().Start();
没有更多,但认为额外的位可能会导致 问题 - 即使是最简单的尝试 温莎集装箱让它死得很痛苦。
错误是:
Component 89374c5e-29e5-4506-ba2e-5618fdc0d786 could not be
registered. There is already a component with that name. Did you want
to modify the existing component instead? If not, make sure you
specify a unique name.
我实际上并没有注册任何东西,所以 NSB 可能必须尝试注册两次?
w://
【问题讨论】:
标签: c# castle-windsor nservicebus esb