ioc-container
Share castle windsor singleton instance across multiple components
I want to be able to do this: <component id=\"Component1\" service=\"Foo.IFoo, Foo\" 开发者_开发问答type=\"Foo.Bar, Foo\" lifestyle=\"singleton\" />[详细]
2023-04-12 17:37 分类:问答IoC with static and dynamic dependencies
I\'m trying to implement IoC in my app. I have this model: interface IService; interface IComponent; class Service : IService[详细]
2023-04-12 17:03 分类:问答Passing client context using Unity in WCF service application
I have a WCF service application (actually, it uses WCF Web API preview 5) that intercepts each request and extracts several header values passed from the client.The idea is that the \'interceptor\' w[详细]
2023-04-12 09:45 分类:问答IoC / DI with MVC Attributes
One of my MVC attributes has a dependancy on a service which I was hoping to inject via the constructor. Obviously the MVC attribute requires a parameterless constructor too.[详细]
2023-04-11 23:27 分类:问答When using an IoC container, how to pass dynamic data / objects to a class?
I have an Order class with the below constructor public Order(IProduct product, short count) { this._product = product;[详细]
2023-04-09 08:39 分类:问答Unity run-time resolving?
I have the following code in a console program. interface I { ...; string X { get; }; string Y {get; }; string Z {get; } ...}[详细]
2023-04-09 06:43 分类:问答Why does Castle Windsor throw a ComponentNotFoundException in this simple example?
I\'m just getting started with the Castle Windsor IoC, and I\'m having a hard time following the examples.Can somebody please explain why this simple console application fails?I must be missing someth[详细]
2023-04-08 22:10 分类:问答Should I use Unity Config file or Code to register types and instances?
Finally started to conf开发者_开发技巧igure an IoC Container! I\'m using Unity and have configured it to have my objects registered using the config file:[详细]
2023-04-08 20:17 分类:问答Antipatterns of IoC container usage. Why IoC containers are so complex and used so "fancy" way?
I\'m seriously start thinking that usage of IoC container provokes to create overdesigned solutions (at least it provokes me to try to use various unnecessary features:).[详细]
2023-04-08 09:56 分类:问答What is the difference between @Inject and @Autowired
i am just wondering what is the dif开发者_开发知识库ference between @Inject & @Autowired when to use each one ?, or they are doing the same thing ?[详细]
2023-04-07 17:24 分类:问答