当前生产NUGET版本。Windows 8 x64 VS2012
我遵循了如何创建pub/sub的示例。默认构建器被替换为structuremap,一切都运行得很好。我删除了raven的队列和数据库,控制台报告client@machine name不存在。
我再次删除了队列和db,注释掉了structuremap的东西,恢复了默认的构建器,一切都正常了。
不使用默认构建器首先设置队列的新项目也存在同样的问题。
初始
Configure.With()
.DefaultBuilder()
.DefiningEventsAs(t => t.Namespace != null && t.Namespace.EndsWith("Events"));使用StructureMap
public void Init()
{
Configure.With()
//.DefaultBuilder()
.StructureMapBuilder(new Container(new DependencyRegistry()))
.JsonSerializer()
.DefiningEventsAs(t => t.Namespace != null && t.Namespace.EndsWith("Events"));
}
public class DependencyRegistry : Registry
{
public DependencyRegistry()
{
Scan(x =>
{
x.AssembliesFromApplicationBaseDirectory();
x.WithDefaultConventions();
});
}
}发布于 2013-03-25 23:11:48
DefiningEventsAs需要紧跟在对With()的调用之后。这是一个已知的问题,我们将确保在未来的版本中解决它。
https://stackoverflow.com/questions/15616719
复制相似问题