webadvanced / Structuremap.WebAPI2

Apache License 2.0
12 stars 1 forks source link

A WebApi2 IDependencyResolver wrapper for Structuremap 3.x

[What it adds to your solution]

2 directories to the root of your MVC project:

4 Files:

[Default configuration]

public DefaultRegistry() {
    Scan(
        scan => {
            scan.TheCallingAssembly();
            scan.WithDefaultConventions();
        });
    //For<IExample>().Use<Example>();
}

This configuration will just work for any Interfaces and concrete implementations that follow the default convention and are part of the project. I.E. ISomeService.cs implemented with SomeService.cs