NancyFx/Nancy.Bootstrappers.StructureMap — pull request #24 by gregsochanik (2014-07-29 09:48:23+00:00)
Title: This commit removes some unnecessary calls to register components, 

as advised by StructureMap's JDMiller. This is with the aim of minimising difficult to debug issues at load, by reducing the amount of calls made to the SM container from Nancy.

The call to configure has been completely removed from as it is not needed.

The method which is called per request does not need to register the current module type on the fly, and can just return it from the container and cast it to INancyModule, as "StructureMap can happily build a concrete type even if it's not explicitly registered as long as the StructureMap container can fill the the concrete type's dependencies."