NOTE: Simple Injector v1.4.0 NOT the latest release. Please click on the Downloads tab above to find the latest Simple Injector release.
This release adds a one feature and one bug in the core library and and adds an improvement to the Extensions library.
New features and improvements in this release for the SimpleInjector.dll
- A new GetInitializer<T> method has been added to the container, to allow retrieving an Action<T> delegate -for a given T- that, when called, calls all delegates that are registered using the RegisterInitializer<T>, and apply to that given T. This enables some advanced scenarios. The RegisterManyForOpenGeneric method of the SimpleInjector.Extensions.dll makes use of this new GetInitializer<T> method.
Bug fixes in this release for the SimpleInjector.dll
- The exception message that was thrown in case the delegate of a type could not be compiled, incorrectly described the UnregisteredTypeEventArgs.Register method, which was confusing and misleading.
New features and improvements in this release for the SimpleInjector.Extensions.dll
- Decorators created using the RegisterManyForOpenGeneric extension methods now get initialized by all applicable initializers (if any).