This project has moved. For the latest updates, please go here.

fFastInjector Auto Configuration

fFastInjector does not have any auto-configuration for interfaces.

By default, fFastInjector will resolve classes by finding the constructor with the most parameters * and calling itself to resolve each of those types.

If a constructor is decorated with the InjectDependencyHere attribute, that constructor will be selected. Properties and Methods can also be decorated with this attribute.

A property decorated with InjectDependencyHere will have the property type resolved by fFastInjector and injected when Injector.Resolve is called.

A method decorated with InjectDependencyHere will have fFastInjector called for the type of each of its arguments, and the method will be called with those values.

* This is a change from the previous version that would look for the constructor with the least parameters.

Last edited Jan 14, 2015 at 11:16 AM by Grax, version 3


No comments yet.