This project is read-only.

Simple Injector v2.7

Rating: No reviews yet
Downloads: 384
Change Set: c66db5dc154c
Released: Jan 15, 2015
Updated: Feb 1, 2015 by dot_NET_Junkie
Dev status: Stable Help Icon

Recommended Download

Application SimpleInjector Runtime Library v2.7.0.zip
application, 1192K, uploaded Jan 15, 2015 - 245 downloads

Other Available Downloads

Source Code SimpleInjector Source Code v2.7.0.zip
source code, 987K, uploaded Jan 15, 2015 - 83 downloads
Documentation SimpleInjector.chm
documentation, 826K, uploaded Jan 15, 2015 - 56 downloads

Release Notes

NOTE: This is NOT the latest release. Please click on the Downloads tab above to find the latest Simple Injector release.

The two main areas of improvement for Simple Injector 2.7 are diagnostics and collections.

Two new diagnostic warnings have been added that detect common configuration mistakes. The Torn Lifestyle diagnostic warning detects cases where the user has made multiple registrations with the same lifestyle that map to the same component. The Disposable Transient Component diagnostic warning signals the registration of a transient component that implements IDisposable, because transients are not disposed by the container.

Collection support has been highly improved. Besides the existing support for IEnumerable<T>, IReadOnlyCollection<T> and IReadOnlyList<T>, the container now allows resolving and injecting IList<T>, ICollection<T> and arrays as well. Besides this, the container now resolves all variant (both covariant, contravariant, or any combination) elements of a registered collection and the AppendToCollection extension method from the SimpleInjector.Advanced namespace allows appending any non-generic, closed-generic, partially closed-generic and open-generic type to an existing collection.

New features and improvements for the SimpleInjector.dll

  • Added support for resolving IList<T> and ICollection<T>. (work item 20981)
  • Added support for resolving arrays. (work item 20982)
  • Added 'torn lifestyle' diagnostic warning. (work item 20975)
  • Added 'disposable transient' diagnostic warning . (work item 20957)
  • Added support for resolving assignable variant implementations in collections registered with RegisterAll. (work item 20984)
  • AppendToCollection extension methods now support open-generic types. (work item 20985)

Bug fixes for the SimpleInjector.dll

  • In case a constructor of a type contained a primitive dependency, while the type was resolved as part of a collection or directly by building the Registration, the thrown exception message was misleading. (work item 20986)

New features and improvements for the SimpleInjector.Integration.WebApi.dll

  • New RegisterWebApiControllers overload added to the SimpleInjectorWebApiExtensions class that allows specifying the assemblies to search through. This is useful during testing where the default IAssemblyResolver can't be used. (work item 20990)

Reviews for this release

No reviews yet for this release.