structuremap
StructureMap: how to correctly set up default dependencies
An approach we\'ve taken recently is to include a StructureMap registry in each of our assemblies that set\'s up the default dependencies.[详细]
2023-03-22 03:37 分类:问答StructureMap MVC 3 IDependencyResolver
Interface IDependencyResolver has two method GetService and GetServices that i implement like: public class SmDependencyResolver : IDependencyResolver {[详细]
2023-03-22 02:51 分类:问答Dependency Injection / Constructor Injection Help
I have the following classes / interfaces: public interface IProjectRepository { IQueryably<Project> GetProjects();[详细]
2023-03-22 00:29 分类:问答StructureMap configure
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:[详细]
2023-03-22 00:15 分类:问答StructureMap & 404 Errors
I have this as my DefaultControllerFactory override: public class StructureMapControllerFactory : DefaultControllerFactory[详细]
2023-03-19 19:20 分类:问答ObjectDisposedException thrown everytime a "User" (membership) object is updated
I am using asp.net mvc 3, entity framework with structure map for IoC. I have my own custom membership provider.[详细]
2023-03-19 10:30 分类:问答Auto registering complex generic types in StructureMap
I need some help in auto-registering generics using StructureMap. Here is my scenario: public class Object<T>[详细]
2023-03-18 23:14 分类:问答Using IoC in extension methods
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[详细]
2023-03-18 05:08 分类:问答StructureMap: Choose concrete type of nested dependency
Calculators: public interface ICalculator { int Calculate(int a, int b); } public class Calculator : ICalculator[详细]
2023-03-17 10:17 分类:问答MVC3 Architecture/Validation Question
I think this is a pretty simple task, but I can\'t for the life of me get it working. Environment - MVC3, FluentValidation, StructureMap.[详细]
2023-03-17 05:24 分类:问答