我收到此错误:No Default Instance defined for PluginFamily IReadModelRepository
这是我的注册表
public class DependencyRegistry : Registry
{
public DependencyRegistry()
{
//Must reference ReadModelRepository dll or get the above error
//For(typeof(IReadModelRepository<>)).Use(typeof(ReadModelRepository<>));
Scan(x =>
{
x.AssembliesFromApplicationBaseDirectory();
x.WithDefaultConventions();
});
}
}
有没有办法让上面的注册表工作而没有明确引用ReadModelRepository
?