1

I am getting this error: No Default Instance defined for PluginFamily IReadModelRepository

This is my registry

    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();
            });
        }
    }

Is there a way to get the above registry working without the explicit reference to the ReadModelRepository?

Travis J
  • 81,153
  • 41
  • 202
  • 273
ton.yeung
  • 4,793
  • 6
  • 41
  • 72
  • Is there a reason why you want to avoid that ? – Alex Rouillard Nov 11 '13 at 20:37
  • The auto registration will bind IType to Type automagically, and then there's the IRepository, which has to have a manual bind. That means that there is something I'm not understanding about StructureMap and the conventions are no longer consistent. – ton.yeung Nov 12 '13 at 01:32

0 Answers0