inversion-of-control
How to force the order of Installer Execution
I have been building a new .NET solution with Castle performing my DI. Its now at the stage where i would like to control the order in which my installers run. I have built individual[详细]
2023-03-12 23:45 分类:问答Unity Container singleton based on parameters
is it possible in Microsoft Unity 2.0 container framework to create singletons based on certain parameters.[详细]
2023-03-12 19:47 分类:问答Way to fill collection with Unity
I have two example classes class ClassToResolve { private List<CollectionItem> _coll; public ClassToResolve(List<CollectionItem> coll)[详细]
2023-03-12 11:53 分类:问答Disposing ObjectContext (per-request) after use
I am using creating one ObjectContext per-request concept. Technically, I am adding ObjectContext instance to HttpContext.Current.Items. But I do not know how to kill this instance properly. Is it saf[详细]
2023-03-11 22:09 分类:问答IOC issue: Too many Abstract Factories for Runtime data dependent classes
I have recently started to useDI in one of my projects. Forruntime dependent classes, I created correspondingAbstract factories. After following this pattern I end up having too many abstract factorie[详细]
2023-03-11 08:16 分类:问答Unity: propagate named registration
With Unity (2.0) I register two named interfaces of IFoo, mapped to two different implementations: Container[详细]
2023-03-11 07:09 分类:问答Register open generics with precedence
Is it possible to use unity like so: container.Register(typeof(IMyType<car>)开发者_如何学运维, typeof(MyType1<car>));[详细]
2023-03-10 22:25 分类:问答MVVM and IOC: Handling View Model's Class Invariants
This is an issue I\'ve been struggling with since I started using MVVM, first in WPF and now in Silverlight.[详细]
2023-03-10 20:17 分类:问答IOC Container build in code vs configuration.Advice needed
I have not done much IOC but from what I read and the examples I see on the internet it has confused me.[详细]
2023-03-10 14:56 分类:问答Swap out repositories with a flag
I have an IRepository< T > interface with many T\'s and several implementations (on-demand DB, web service, etc.). I use AutoFac to register IRepository\'s for many T\'s depending on the kind of re[详细]
2023-03-10 08:47 分类:问答