NOTE: Simple Injector v2.1 is NOT the latest release. Please click on the Downloads tab above to find the latest Simple Injector release.
This minor release adds two new features: A new extension point has been added that makes it considerably easier to auto-wire properties; A new diagnostic warning
has been added that searches the configuration for components with too many dependencies, because they can cause maintainability issues.
New features and improvements for the SimpleInjector.dll
- IPropertySelectionBehavior interface added to allow users to override the default behavior (which is to not inject any properties). The default behaviour can be changed by replacing the Container.Options.PropertySelectionBehavior property. (work item 19389)
- New warning added in the Diagnostic Services to warn about classes with too many dependencies. (work item 19428)
Bug fixes for the SimpleInjector.dll
- A call to Register<TService, TImplementation>(Lifestyle) did not verify whether TImplementation was a constructable type (in the default configuration this means that it is concrete, has one constructor, and no primitive constructor arguments). This resulted in a failure during when resolving the instance, but this was later than needed. (work item 19464)