StructureMap


Adding StructureMap to project MVC5

Start by adding two nugets:

1. nuget install Sturecuremap.MVC5 

2. nuget install Structuremap.WebApi2

By adding the last one, we will be able to use automatic resolving in WebApi as well.

If you want to add your own resolving for specifc classes or set Singleton or so,you may do that in

DefaultRegistry.cs

 

 

 

 


Published: 2016-08-25