I personally like the option to configure StructureMap from C# code. From what I understand, one of the advantages of DI, is that we can easily swap in a new concrete instance. But, if the configurati
My situation is essentially this: I have a class called Foo which has dependencies A and B, all of which are internal to a library. Instances of Foo will be created by user of the library, and they sh
I开发者_开发技巧 am working on a WPF application, using the MVVM Pattern. Each ViewModel will need access to a security object, that essentially provides information about the rights the user has.Bec
I\'m trying to configure a class with Annotation based configuration in Spring 3, which takes primitive values as its constructor arguments:
After all what I have read about Dependency Injection and IoC I have decided to try to use Windsor Container within our application (it\'s a 50K LOC multi-layer web app, so I hope it\'s not an overkil
Sometimes I have classes which need to get some information for construction. I am not talking about references to other objects (which will be injected) but about (for instance) strings which are hol
I am doing an MVC project with structuremap as an IOC container. We are doing TDD, and I want to set up my dependencies so that its easy to work with, and so that its easy to test.
I am looking for suggestions on how to map a single DTO class with a type discriminator to multiple domain classes.
We have a legacy system where something like a Service Locator is used to instantiate and provide all service objects:
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this