我将使用NServiceBus,我想使用Windsor作为“构建器”
我在过去读了很多关于bug的帖子&关于处理程序创建与生活方式的不兼容。
我还读到了关于修复和新版本的内容。
我希望得到关于集成状态的建议。
哪些构建(NServiceBus / Windsor)进展顺利?
http://nuget.org/packages/NServiceBus.CastleWindsor/3.3.5是一个良好而稳定的开始吗?
有没有在MVC3项目中使用这两个人的技巧示例?
非常感谢。
发布于 2013-03-22 06:26:51
是的,http://nuget.org/packages/NServiceBus.CastleWindsor/3.3.5是Windsor + NServiceBus集成的最新稳定版本,此软件包已针对Castle.Windsor v3.0.0.4001进行了测试
在MVC3项目中使用NServiceBus + Windsor应该非常简单,可以从this sample开始。
您所需要做的就是引用nuget package并在Global.asax.cs中更改Application_Start()以使用Windsor容器,例如:
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RegisterGlobalFilters(GlobalFilters.Filters);
RegisterRoutes(RouteTable.Routes);
// NServiceBus configuration
Configure.WithWeb()
.CastleWindsorBuilder()
.ForMvc()
.JsonSerializer()
.Log4Net()
.MsmqTransport()
.IsTransactional(false)
.PurgeOnStartup(true)
.UnicastBus()
.ImpersonateSender(false)
.CreateBus()
.Start(() => Configure.Instance.ForInstallationOn<NServiceBus.Installation.Environments.Windows>().Install());
}https://stackoverflow.com/questions/15428833
复制相似问题