Simple Injector v2.5

Rating:        Based on 2 ratings
Reviewed:  2 reviews
Downloads: 2409
Change Set: 107019
Released: Mar 2, 2014
Updated: Mar 2, 2014 by dot_NET_Junkie
Dev status: Stable Help Icon

Recommended Download

Application SimpleInjector Runtime Library v2.5.0.zip
application, 1256K, uploaded Mar 2 - 1837 downloads

Other Available Downloads

Source Code SimpleInjector Source Code v2.5.0.zip
source code, 969K, uploaded Mar 2 - 309 downloads
Documentation SimpleInjector.chm
documentation, 776K, uploaded Mar 2 - 263 downloads

Release Notes

The most prominent new feature in this release is the addition of async/await support. This is supported by the addition of a new ExecutionContextScoping package with its ExecutionContextScopeLifestyle. Built on top of this package, is the new ASP.NET Web API integration package that allows registering instances with the WebApiRequestLifestyle for both IIS-hosted and self-hosted Web API projects.

Besides these large new features, there are lots of small improvements and bug fixes in the core library, such as the ability to register a factory-factory delegate using a new RegisterDecorator overload, which allows creating new decorator types based on contextual information.

New SimpleInjector.Extensions.ExecutionContextScoping.dll

  • A new SimpleInjector.Extensions.ExecutionContextScoping.dll has been added. There is a separate NuGet package for this dll and you'll need .NET 4.5 or above for this package.

New SimpleInjector.Integration.WebApi.dll

  • A new SimpleInjector.Integration.WebApi.dll has been added. There is a separate NuGet package for this dll and you'll need .NET 4.5 or above for this package.
  • There's also a convenient Quick Start NuGet package that helps you bootstrap your Web API application with Simple Injector in a matter of seconds.

New features and improvements for the SimpleInjector.dll

  • New RegisterDecorator overload added that allows supplying a factory delegate for creating decorator types. 20550)
  • Design of the ScopedLifestyle class improved to make it easier to create custom lifestyles.
  • Performance improvements for ScopeLifestyle derivatives. Resolving the scope is now done once per compiled delegate and resolving an scoped instance from that scope is also done just once per compiled delegate. (work item 20641)
  • A call to Container.Verify will now ensure deterministic disposal of the scoped instances that are created during verification. (work item 20773)

Bug fixes for the SimpleInjector.dll

  • Concurrency bug fixed in collections registered with RegisterAllOpenGeneric. (work item 20681)
  • Scoped lifestyles now allow resolving new instances while they are being disposed. Those resolved instances will be disposed as well.
  • Unregistered concrete types that were requested inside a singleton-registered delegate, were instantiated twice during a call to Container.Verify. (work item 20732)

Bug fixes and improvements for the SimpleInjector.Integration.Wcf.dll

  • Removed the need to call EnablePerWcfOperationLifestyle.
  • Performance improved when Container.Verify was called.
  • Lifestyle now allow resolving new instances while they are being disposed. Those resolved instances will be disposed as well.
  • Improved performance resolving object graphs that contain instances that are registered per WCF operation. Resolving the scope is now done once per compiled delegate and resolving an scoped instance from that scope is also done just once per compiled delegate. (work item 20641)

Bug fixes and improvements for the SimpleInjector.Extensions.LifetimeScope.dll

  • Removed the need to call EnableLifetimeScoping when lifetime scoping was used without any lifetime-scoped registrations.
  • Performance improved when Container.Verify was called.
  • Improved performance resolving object graphs that contain instances that are registered per Lifetime scope. Resolving the scope is now done once per compiled delegate and resolving an scoped instance from that scope is also done just once per compiled delegate. (work item 20641)

Bug fixes and improvements for the SimpleInjector.Integration.Web.dll

  • Improved performance resolving object graphs that contain instances that are registered per web request. Resolving the scope is now done once per compiled delegate and resolving an scoped instance from that scope is also done just once per compiled delegate. (work item 20641)

Bug fixes and improvements for the SimpleInjector.Integration.Web.Mvc.dll

Reviews for this release

     
Super stuff. I love this DI. Response in discussion forums is scarily fast. Do you guys ever sleep?
by viklele on Jul 10 at 1:45 PM
We work in shifts :-)
Reply by dot_NET_Junkie (Coordinator) on Jul 26 at 7:40 PM
     
Easy setup, supports Web API, Excellent docs and from what I've seen on StackOverflow, great support as well. I wish Glass Mapper for Sitecore used instead of Castle Windsor. Thanks!
by GFoley83 on May 5 at 9:06 AM