Simple Injector v1.6.0

Rating:        Based on 1 rating
Reviewed:  1 review
Downloads: 247
Change Set: 96112
Released: Nov 15, 2012
Updated: Feb 25, 2013 by dot_NET_Junkie
Dev status: Stable Help Icon

Recommended Download

Application SimpleInjector Runtime Library v1.6.0.12319
application, 522K, uploaded Nov 15, 2012 - 140 downloads

Other Available Downloads

Application SimpleInjector Silverlight Runtime Library v1.6.0.12319
application, 378K, uploaded Nov 15, 2012 - 22 downloads
Source Code SimpleInjector Source Code v1.6.0.12319
source code, 1657K, uploaded Nov 15, 2012 - 47 downloads
Documentation SimpleInjector.chm
documentation, 315K, uploaded Nov 15, 2012 - 38 downloads

Release Notes

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

This release fixes a few minor bugs in the core and Extensions libraries and changed the behaviors of the Per Web Request (RegisterPerWebRequest) and Per Lifetime Scope (RegisterLifetimeScope) lifestyles that are available in the extension packages.

Bug fixes in this release for the SimpleInjector.dll
  • Calling GetService(Type) and GetRegistration(Type) with type being IEnumerable<> failed instead of returning null.
  • Injecting properties could fail under .NET 4.0 and up under certain specific conditions. (work item 18909)
  • Building a friendly name for an exception message failed for types nested in a generic type. The original error was lost.
  • GetInstance(Type) threw a less expressive exception as GetInstance<TService>() when a type could not be resolved. (work item 18542)

Bug fixes in this release for the SimpleInjector.Extensions.dll
  • RegisterOpenGeneric allowed registering types that could never be resolved (for instance when they had multiple constructors). An ArgumentException is now thrown during registration.
  • An implementation type registered using RegisterOpenGeneric that could not be resolved (because for instance it has unregistered dependencies) caused a NullReferenceException.

Changes in this release for the SimpleInjector.Integration.Web.dll
  • A new PerWebRequestInstanceCreator<TService> type has been added to allow making it easier to register generic types (registered using RegisterOpenGeneric or RegisterDecorator) with the Per Web Request lifetime.
  • An exception is thrown when a Per Web Request registered instance is requested outside the context of a HTTP request (when HttpContext.Current is null). The previous release returned a transient, but this would easily lead to hard to track errors and is hardly ever the behavior the user needs.

Changes in this release for the SimpleInjector.Extensions.LifetimeScoping.dll
  • An exception is thrown when a Per Lifetime Scope registered instance is requested outside the context of a lifetime scope. The previous release returned a singleton, but this would easily lead to hard to track errors. This was hardly ever the behavior the user needs.

Bug fixes in this release for the SimpleInjector.Integration.Wcf.dll
  • Registrations made using BeginWcfOperationScope can now be tested using Container.Verify.

Reviews for this release

     
What a great project. Very fast, easy to use, and some of the best documentation I've ever read.
by Dan15 on Dec 8, 2012 at 10:10 AM