I\'m trying to set the DataContext on ApplicationMainWindow which is a WPF window. When I set it up in the XML like so it leaves the DataContext null:
I\'m somewhat new to Unity and dependency injection. I\'m trying to write a unit test that goes something like this:
My case it is Ninject 2. // normal explicit dispose using (var dc = new EFContext) { } But sometimes I need to keep the context longer or between function calls.
The advantage of inversion of contro开发者_运维问答l is that it decouples objects from specific lookup mechanisms and implementations of the objects it depends on. As a result, more flexibility is obt
I\'m planning to use Autofac IoC for my project where I must implement auditing (Who, What is doing in application). I was already read a lot of articles on this subject (auditing).
I\'m 开发者_如何学Pythontrying to understand when I should use a container versus manually injecting dependencies.If I have an application that uses a 1-2 interfaces and only has 1-2 concrete implemen
I have a WCF service application that uses a component called EnvironmentConfiguration that holds configuration information for my application.I am converting this service so that it can be used by di
At a certain point, during the running of my app, I want Castle.Windsor to release everything cached in memory. Is this impossib开发者_开发知识库le for a singleton object?Use nested container for that
So I already have a working implementati开发者_如何学Goon of StructureMap with the WCF service (including custom instance provider, behaviors, etc.)
Getting going now with NInject...:) For a WinForms application, and in parti开发者_运维问答cular the business logic classes used within it, is there a rule of thumb in terms of which Classes once sho