inversion-of-control
Custom OptionalAttribute with Ninject
Is there a way that I can create my own OptionalAttribute for Ninject? I know I can replace InjectAttribute by using the NinjectSettings class (which I already have done), but there doesn\'t seem to[详细]
2023-04-13 08:52 分类:问答Onion Architecture and Registering Dependencies in DI Container
I have been reading up on the Onion architecture, and I have what I think is a simple question about how assembly dependencies should be arranged for a DI container to be able to wire everything up.[详细]
2023-04-13 04:37 分类:问答Evolving Business - DDD or Not?
I have a project where I\'m already working on a traditional 3 layers architecture (Entity / Business / UI), and I\'m applying the repository pattern and IoC.[详细]
2023-04-13 03:37 分类:问答httpcontext extension and IOC considerations
Hi created an extension method to control the lifecycle of an EF context.My code is below public static Entities GetCentralRepositoryContext(this HttpContext httpcontext)[详细]
2023-04-12 18:29 分类:问答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 分类:问答Specify RequiredCreationPolicy for non-Attributed Imports
I have an IoC wrapper that uses MEF as it\'s DI container, an applicable snippet of the wrapper is shown below.[详细]
2023-04-12 04:16 分类:问答Autofac property injection
I am in the process of changing my Asp.Net MVC3 project to use Autofac for service injection into my controllers.So far this has been pretty straightforward.My services all have a Telerik OpenAccess d[详细]
2023-04-11 12:56 分类:问答Open source projects using IoC
I am looking for good real-world examples of IoC in actual .NET software projects that use any of the common (or even uncommon) IoC containers to resolve dependency graphs more complex than two or thr[详细]
2023-04-11 10:08 分类:问答