An approach we\'ve taken recently is to include a StructureMap registry in each of our assemblies that set\'s up the default dependencies.
Interface IDependencyResolver has two method GetService and GetServices that i implement like: public class SmDependencyResolver : IDependencyResolver {
I have the following classes / interfaces: public interface IProjectRepository { IQueryably<Project> GetProjects();
I am sorry to ask silly question, but I don\'t know how to define my question in the search engine. I am using StructureMap like this:
I have this as my DefaultControllerFactory override: public class StructureMapControllerFactory : DefaultControllerFactory
I am using asp.net mvc 3, entity framework with structure map for IoC. I have my own custom membership provider.
I need some help in auto-registering generics using StructureMap. Here is my scenario: public class Object<T>
I am working on an ASP MVC 3 app and I\'m writing a custom html helper. It\'s nothing special or hugely complex, but it will need an instance of an interface from structure map. I know I can simply ca
Calculators: public interface ICalculator { int Calculate(int a, int b); } public class Calculator : ICalculator
I think this is a pretty simple task, but I can\'t for the life of me get it working. Environment - MVC3, FluentValidation, StructureMap.