Unity 5.0.0

Unity Library

Unity Container Library as single package

There is a newer version of this package available.
See the version list below for details.
Install-Package Unity -Version 5.0.0
dotnet add package Unity --version 5.0.0
<PackageReference Include="Unity" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Unity --version 5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release 5.0.0

After few years of inactivity we are finally updating Unity library. The main goal of this release was to preserve compatibility with previous distribution v4.0.1 as much as possible. Unfortunately loss of original signing key prevented creation of compatible assemblies. To eliminate conflicts assembly names and namespaces were changed.
The Unity Container has been split into following assemblies:

  • Unity.Abstractions.2.0.0
  • Unity.Container.5.0.0
  • Unity.ServiceLocation.2.0.0
  • CommonServiceLocator.2.0.1

Each of these is available as individual package but Abstractions and Container also distributed as library via Unity.5.0.0 package.

All 1220 tests from previous release are still passing.

New features

  • Unity container no longer references CommonServiceLocator
  • Added support for .NET 4.0, 4.5, 4.7, .NET Core 1.0+ and .NET Standard 1.0+ where available.
  • Container internally uses ConcurrentDictionary to improve multi threading
  • Added DelegateInjectionFactory which allows free form delegate to serve as Injection Factory
  • Added support for IEnumerable<T> resolution
  • Registration speed increased about one order of magnitude See data

Breaking changes

  • Unity has been split into Unity.Abstractions and Unity.Container
  • Moved ServiceLocation functionality into separate package Unity.ServiceLocation
  • Interface IBuilderContext now has reference to IUnityContainer. This change was required to speed up dependency resoluton.
  • TearDown has been removed from IUnityContainer
  • ResolveAll has been converted to Extension method

Release 5.0.0

After few years of inactivity we are finally updating Unity library. The main goal of this release was to preserve compatibility with previous distribution v4.0.1 as much as possible. Unfortunately loss of original signing key prevented creation of compatible assemblies. To eliminate conflicts assembly names and namespaces were changed.
The Unity Container has been split into following assemblies:

  • Unity.Abstractions.2.0.0
  • Unity.Container.5.0.0
  • Unity.ServiceLocation.2.0.0
  • CommonServiceLocator.2.0.1

Each of these is available as individual package but Abstractions and Container also distributed as library via Unity.5.0.0 package.

All 1220 tests from previous release are still passing.

New features

  • Unity container no longer references CommonServiceLocator
  • Added support for .NET 4.0, 4.5, 4.7, .NET Core 1.0+ and .NET Standard 1.0+ where available.
  • Container internally uses ConcurrentDictionary to improve multi threading
  • Added DelegateInjectionFactory which allows free form delegate to serve as Injection Factory
  • Added support for IEnumerable<T> resolution
  • Registration speed increased about one order of magnitude See data

Breaking changes

  • Unity has been split into Unity.Abstractions and Unity.Container
  • Moved ServiceLocation functionality into separate package Unity.ServiceLocation
  • Interface IBuilderContext now has reference to IUnityContainer. This change was required to speed up dependency resoluton.
  • TearDown has been removed from IUnityContainer
  • ResolveAll has been converted to Extension method

Release Notes

Entire Unity Library as single package.

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
5.10.3 52,152 4/4/2019
5.10.2 23,425 3/23/2019
5.10.1 10,837 3/19/2019
5.10.0 3,989 3/18/2019
5.9.8 4,916 3/17/2019
5.9.7 50,453 3/4/2019
5.9.6 3,378 3/2/2019
5.9.5 40,541 2/18/2019
5.9.4 18,483 2/9/2019
5.9.3 150,761 1/30/2019
5.9.2 21,509 1/25/2019
5.9.1 3,452 1/24/2019
5.9.0 10,699 1/23/2019
5.9.0-RC1 1,625 1/21/2019
5.9.0-RC 1,912 1/14/2019
5.8.13 174,862 12/7/2018
5.8.12 33,971 12/4/2018
5.8.11 519,248 9/1/2018
5.8.10 49,315 8/27/2018
5.8.9 9,493 8/25/2018
5.8.8 2,327 8/24/2018
5.8.7 17,381 8/22/2018
5.8.6 718,880 4/19/2018
5.8.5 65,829 4/6/2018
5.8.4 32,296 3/31/2018
5.8.3 3,404 3/30/2018
5.8.2 1,899 3/30/2018
5.8.1 15,785 3/28/2018
5.8.0 21,504 3/27/2018
5.7.3 183,740 3/3/2018
5.7.2 7,754 3/3/2018
5.7.1 8,670 3/2/2018
5.7.0 13,009 3/1/2018
5.6.1 106,602 2/22/2018
5.6.0 88,592 2/13/2018
5.5.8 28,812 2/9/2018
5.5.6 124,371 1/23/2018
5.5.5 167,576 1/11/2018
5.5.4 55,230 1/3/2018
5.5.3 5,592 1/3/2018
5.5.2 8,823 12/30/2017
5.5.1 5,464 12/30/2017
5.5.0 45,678 12/20/2017
5.4.0 18,152 12/18/2017
5.3.2 128,138 12/2/2017
5.3.1 144,076 11/21/2017
5.3.0 27,198 11/19/2017
5.2.1 50,341 11/15/2017
5.2.0 191,814 11/12/2017
5.1.2 65,712 10/30/2017
5.1.0 11,980 10/29/2017
5.0.2 18,521 10/25/2017
5.0.1 23,236 10/23/2017
5.0.0 29,220 10/19/2017
4.0.1 6,746,416 10/6/2015
3.5.1405-prerelease 105,660 5/15/2014
3.5.1404 3,336,094 4/22/2014
3.0.1304.1 889,527 8/29/2013
3.0.1304 280,261 4/26/2013
3.0.1208-Preview 11,292 8/10/2012
2.1.505.2 1,444,890 8/2/2012
2.1.505 1,263,106 5/11/2011
2.0.0 263,561 5/5/2011
1.0.0-beta 829 12/2/2015
Show less