dependency-injection
Autofac equivalent of Ninject's WhenInjectedInto()
So we\'re working on converting some projects at work from Ninject to Autofac, and we\'ve stumbled on something really neat within Ninject that we can\'t figure out how to do in Autofac.In our applica[详细]
2023-04-10 17:21 分类:问答StructureMap with Windows Forms
I\'m used to work with StructureMap with Web Apps... but now, I\'m working on a Windows Forms project and I\'d like to use it, but I don\'t how to configure it.[详细]
2023-04-10 15:55 分类:问答inject class in to using statement with spring.net
I am developing a .net c# application that开发者_如何学运维 uses dependency injection with spring.net and ran in to an issue. I have the following method:[详细]
2023-04-10 11:29 分类:问答Springframework constructor-arg
I have a MainClass which have 2 variables.I would like to pass those 2 values to a springframework bean class \"Test\".how do I define that in applicationContext.xml and also how do I pass those 2 var[详细]
2023-04-10 02:19 分类:问答How can i inject dependencies to Symfony Console commands?
I\'m writing an open source application uses some Symfony components, and using Symfony Console component for interacting with shell.[详细]
2023-04-09 23:57 分类:问答Ninject - Kernel in static class?
Is it right at all to \"wrap\" a StandardKernel with the required NinjectModules in a static class in a separate, share开发者_运维知识库d library, and use that same library whenever injection is neede[详细]
2023-04-09 19:40 分类:问答Unity: register instance at runtime
I can\'t seem to figure out this one. I have a component which depends on a service. The service has a URL which is only known at runtime. How can I get a Component instance using the container?[详细]
2023-04-09 16:54 分类:问答Accessing stored procedures on a code generated DbContext with Entity Framework 4.1 with DDD
I\'m working on a large project using ASP.Net 开发者_JAVA技巧MVC 3, EF 4.1 and Ninject for Dependecy Injection. I\'ve read through many of the existing questions here regarding DDD, EF and the Reposit[详细]
2023-04-09 15:58 分类:问答Dependency Injection & its relationship with automated testing via an example
Through SO, I found my way to this page: http://www.blackwasp.co.uk/DependencyInjection.aspx There they provide a snippet of C# code to use as an example of code that could benefit from dependency in[详细]
2023-04-09 15:36 分类:问答PHPUnit test case aware of symfony2 dependency injection container
I\'m actually testing a bundle that I created. All the code is fully unit tested but now, I want to test if my symfony2 services can 开发者_开发百科be request without any trouble.[详细]
2023-04-09 15:08 分类:问答