This project is read-only.

Why do we need to scan assemblies with Structure Map if MVC Turbine does it out of the box?

Jan 4, 2013 at 3:50 PM
Edited Jan 4, 2013 at 3:53 PM

Hi Guys,

I am new to MVC Turbine so kindly treat me as naive. I was able to set-up and get going with Turbine quite quickly as it is pretty easy to understand however I have one question. I am referencing two assemblies in my MVC app one is core and the other is entities. Core has interfaces and Entities has its implementations.

In order to make this work with turbine I need to do this.


 var container = new Container( x => x.Scan(
                y =>
            ServiceLocatorManager.SetLocatorProvider(() => new StructureMapServiceLocator(container));

However my understanding of Turbine is that it automatically scans all the assemblies in the bin directory then shouldn't I be able to skip this step?

Hope I made sense.

Regards, Afraz