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 45,567 4/4/2019
5.10.2 22,642 3/23/2019
5.10.1 10,227 3/19/2019
5.10.0 3,855 3/18/2019
5.9.8 4,795 3/17/2019
5.9.7 49,600 3/4/2019
5.9.6 3,328 3/2/2019
5.9.5 39,672 2/18/2019
5.9.4 18,155 2/9/2019
5.9.3 150,322 1/30/2019
5.9.2 20,683 1/25/2019
5.9.1 3,422 1/24/2019
5.9.0 10,451 1/23/2019
5.9.0-RC1 1,566 1/21/2019
5.9.0-RC 1,910 1/14/2019
5.8.13 171,627 12/7/2018
5.8.12 33,348 12/4/2018
5.8.11 511,869 9/1/2018
5.8.10 48,893 8/27/2018
5.8.9 9,341 8/25/2018
5.8.8 2,312 8/24/2018
5.8.7 17,105 8/22/2018
5.8.6 711,970 4/19/2018
5.8.5 65,526 4/6/2018
5.8.4 32,095 3/31/2018
5.8.3 3,395 3/30/2018
5.8.2 1,892 3/30/2018
5.8.1 15,627 3/28/2018
5.8.0 21,359 3/27/2018
5.7.3 182,811 3/3/2018
5.7.2 7,743 3/3/2018
5.7.1 8,647 3/2/2018
5.7.0 12,981 3/1/2018
5.6.1 105,990 2/22/2018
5.6.0 88,117 2/13/2018
5.5.8 28,661 2/9/2018
5.5.6 123,922 1/23/2018
5.5.5 166,671 1/11/2018
5.5.4 54,991 1/3/2018
5.5.3 5,558 1/3/2018
5.5.2 8,811 12/30/2017
5.5.1 5,433 12/30/2017
5.5.0 45,176 12/20/2017
5.4.0 18,034 12/18/2017
5.3.2 127,616 12/2/2017
5.3.1 142,841 11/21/2017
5.3.0 27,123 11/19/2017
5.2.1 49,989 11/15/2017
5.2.0 189,544 11/12/2017
5.1.2 65,294 10/30/2017
5.1.0 11,948 10/29/2017
5.0.2 18,478 10/25/2017
5.0.1 23,143 10/23/2017
5.0.0 29,029 10/19/2017
4.0.1 6,717,066 10/6/2015
3.5.1405-prerelease 105,496 5/15/2014
3.5.1404 3,326,059 4/22/2014
3.0.1304.1 883,581 8/29/2013
3.0.1304 279,344 4/26/2013
3.0.1208-Preview 11,291 8/10/2012
2.1.505.2 1,439,804 8/2/2012
2.1.505 1,258,313 5/11/2011
2.0.0 262,754 5/5/2011
1.0.0-beta 825 12/2/2015
Show less