-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the IfFastInjector wiki. IfFastInjector is a micro-IoC injector consisting of two source files (an interface file and an implementation file).
The implementation is distinguished from other options by offering auto-wiring capabilities similar to a full IoC framework such as Ninjit, while being packed into a <1200 lines of code. The framework was written as a portable class library (PCL) using Xamarin, making it suitable (in theory) for Xamarin.IOS and Xamarin.Android development.
While I have padded out the inherited code with quite a few extra unit tests... TODO
So the first question you may be asking is, why another IoC framework? The answer to this is really two fold:
-
Although existing 'micro' IoC frameworks such as SimpleIoC, could get the job done - they were often missing more advanced features around auto-wiring. Having used Guice in the Java world, except for constructor injection. In C#, the frameworks that provided autowiring (such as Ninjit) - had been targetted at the desktop and would require reworking to use in a Mobile environment. Thus, there seemed to be a gap between the Micro and Full IoC containers for use in the mobile space.
-
Being a java developer by trade, an IoC framework seemed like a hairier piece of coding that could help get me into the C# mindset and really learn the edge features of the platform. With those two challenges before me, I set out to write a micro-IoC framework with advanced auto-wiring capabilities.