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 91,044 4/4/2019
5.10.2 28,647 3/23/2019
5.10.1 13,534 3/19/2019
5.10.0 4,781 3/18/2019
5.9.8 5,784 3/17/2019
5.9.7 55,497 3/4/2019
5.9.6 3,758 3/2/2019
5.9.5 44,914 2/18/2019
5.9.4 20,357 2/9/2019
5.9.3 153,076 1/30/2019
5.9.2 24,479 1/25/2019
5.9.1 3,701 1/24/2019
5.9.0 12,126 1/23/2019
5.9.0-RC1 2,025 1/21/2019
5.9.0-RC 1,932 1/14/2019
5.8.13 193,492 12/7/2018
5.8.12 36,887 12/4/2018
5.8.11 557,817 9/1/2018
5.8.10 51,670 8/27/2018
5.8.9 10,060 8/25/2018
5.8.8 2,491 8/24/2018
5.8.7 19,060 8/22/2018
5.8.6 756,498 4/19/2018
5.8.5 67,653 4/6/2018
5.8.4 33,386 3/31/2018
5.8.3 3,519 3/30/2018
5.8.2 2,000 3/30/2018
5.8.1 16,556 3/28/2018
5.8.0 22,426 3/27/2018
5.7.3 188,902 3/3/2018
5.7.2 7,850 3/3/2018
5.7.1 8,860 3/2/2018
5.7.0 13,228 3/1/2018
5.6.1 108,737 2/22/2018
5.6.0 91,395 2/13/2018
5.5.8 29,429 2/9/2018
5.5.6 128,032 1/23/2018
5.5.5 172,207 1/11/2018
5.5.4 56,661 1/3/2018
5.5.3 5,747 1/3/2018
5.5.2 8,983 12/30/2017
5.5.1 5,640 12/30/2017
5.5.0 47,907 12/20/2017
5.4.0 19,161 12/18/2017
5.3.2 130,904 12/2/2017
5.3.1 150,058 11/21/2017
5.3.0 27,462 11/19/2017
5.2.1 51,859 11/15/2017
5.2.0 204,972 11/12/2017
5.1.2 67,731 10/30/2017
5.1.0 12,234 10/29/2017
5.0.2 18,712 10/25/2017
5.0.1 23,732 10/23/2017
5.0.0 29,935 10/19/2017
4.0.1 6,909,700 10/6/2015
3.5.1405-prerelease 106,439 5/15/2014
3.5.1404 3,389,979 4/22/2014
3.0.1304.1 922,534 8/29/2013
3.0.1304 284,584 4/26/2013
3.0.1208-Preview 11,332 8/10/2012
2.1.505.2 1,475,551 8/2/2012
2.1.505 1,292,237 5/11/2011
2.0.0 268,336 5/5/2011
1.0.0-beta 854 12/2/2015
Show less