IoC
IoC Challenge – Multiple interfaces to the same singleton instance
·509 words·3 mins
.NET
ALT.NET
Dependency Injection
IoC
Ninject
StructureMap
Unity
I have an IoC challenge that I am currently trying to work through. I have a series of classes that implement more than one interface, with the lifetime of the class needing to be a singleton, and I really don’t like the idea of falling back on custom instantiation code along with potentially custom lifetime management code to make this work.
Type Tracking Extension for Unity
·387 words·2 mins
Programming
ALT.NET
Unity
IoC
Edit: Source code posted to [Hazware Unity Extensions on GitHub]
My personal inversion of control container is Unity . However, I occasionally find myself looking for functionality from the other .NET IoC containers I have used, such as Ninject and Castle Windsor . Here is the code that came out from trying to solve this need.