DryIoc 4.1.1

DryIoc is fast, small, full-featured IoC Container for .NET

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 3.3.0 or higher.

Install-Package DryIoc -Version 4.1.1
dotnet add package DryIoc --version 4.1.1
<PackageReference Include="DryIoc" Version="4.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DryIoc --version 4.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DryIoc, 4.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install DryIoc as a Cake Addin
#addin nuget:?package=DryIoc&version=4.1.1

// Install DryIoc as a Cake Tool
#tool nuget:?package=DryIoc&version=4.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

## v4.1.1 Bug-fix release

- #118 Validate issue
- #215 RegisterInitializer<TService> causes additional call(s) to TService.Dispose when container is disposed
- #220 Fix INavigationService resolution in Prizm extensions
- #227 Optimize IsRegistered
- #228 Updated DryIoc from 4.0.4.0 to 4.1.0 in Unity Engine project, keyed register/resolve wont work anymore
- #230 Add the error code into the ContainerException message to simplify error finding


## v4.1.0 Feature release

### Highlights

- Better memory use and massively improved performance for the real-world applications - big object graphs and the unit-of-work scenarios. See the updated benchmark results in [readme.md].(https://github.com/dadhi/DryIoc/blob/master/README.md#creating-the-container-registering-the-services-then-opening-a-scope-and-resolving-the-scoped-service-eg-controller-for-the-first-time))
- Improve parallelism / reduce thread blocking #137
- Full and fast DryIoc own Interpretation support via `Rules.WithUseInterpretation()` - useful for iOS and other platforms without compilation support #90
- Add DryIocZero capabilities to the DryIoc source package #101
- Copied DryIoc sample project from the MediatR but with DryIoc.Messages #117

### Features

- Interpretation only option #90
- Add RegisterDelegate with the list of dependencies to Inject and not to Resolve #147
- Lift restrictions for Scope disposal when using ambient ScopeContext #168
- FactoryDelegate<T> wrapper support #191
- Add Rules.UseDecorateeReuseForDecorators #201

### Fixes

- Resolving a component for the second time throws #130
- Stackoverflow exception #139
- Xamarin Forms iOS: Operation is not supported on this platform. #156
- DryIoc 4.0.5 withoutFastExpressionCompiler deadlock issue #157
- Rules.WithDependencyDepthToSplitObjectGraph is not propagated through most of `Rules.With` methods #163
- Rules.WithDependencyDepthToSplitObjectGraph was not applied in some cases with Decorators in graph #164
- Made.Of() Parameters don't follow Reuse setting #179
- ThreadScopeContext not working in DryIoc.dll 4.1.0-preview-02? #183
- ReflectionTools methods unexpectedly return static constructors #184
- Container creates multiple instances if TryInterpret fails #188
- Open-generic implementation may be wrongly considered for service with many type args #190
- DryIOC new Transient Disposable #192
- Private and public Constructors in generic classes #196
- Fix documentation regarding implicitly injected scope as IDisposable #197
- Open generics resolve fails if there is a static constructor #198
- 4.1.0 Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. #205
- Avoid wasteful compilation of the same cached expression by multiple threads #208

  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.0

  • .NETStandard 1.3

  • .NETStandard 2.0

  • Portable Class Library (.NETFramework 4.0, Silverlight 5.0, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)

    • No dependencies.
  • Portable Class Library (.NETFramework 4.5, Windows 8.0, WindowsPhone 8.0, WindowsPhoneApp 8.1)

    • No dependencies.

NuGet packages (16)

Showing the top 5 NuGet packages that depend on DryIoc:

Package Downloads
DryIoc.MefAttributedModel
DryIoc.MefAttributedModel is DryIoc extension to support Microsoft Managed Extensibility Framework for DryIoc container
DryIoc.CommonServiceLocator
Implementation of CommonServiceLocator for DryIoc container, see rationale at https://github.com/unitycontainer/commonservicelocator
DryIoc.WebApi
DryIoc extension for ASP.NET WebAPI
DryIoc.Owin
DryIoc extension for OWIN
DryIoc.Web
DryIoc extension for ASP.NET providing Web Request Reuse

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on DryIoc:

Repository Stars
jbogard/MediatR
Simple, unambitious mediator implementation in .NET
seesharper/LightInject
An ultra lightweight IoC container
CXWorld/CapFrameX
Frametime capture and analysis tool

Version History

Version Downloads Last updated
4.7.7 101 5/10/2021
4.7.6 649 4/21/2021
4.7.5 522 4/4/2021
4.7.4 1,824 2/26/2021
4.7.3 1,260 2/9/2021
4.7.2 7,223 1/16/2021
4.7.1 97 1/15/2021
4.7.0 687 1/5/2021
4.6.0 3,243 12/10/2020
4.5.2 415 12/3/2020
4.5.1 1,813 10/28/2020
4.5.0 3,146 10/12/2020
4.4.1 5,598 9/9/2020
4.4.0 286 9/4/2020
4.3.4 357 9/1/2020
4.3.3 342 8/27/2020
4.3.2 1,648 8/15/2020
4.3.1 1,367 8/7/2020
4.3.0 475 8/3/2020
4.2.5 826 7/20/2020
4.2.4 2,452 7/14/2020
4.2.3 664 7/4/2020
4.2.2 269 7/2/2020
4.2.1 1,160 6/8/2020
4.2.0 2,648 5/18/2020
4.1.4 4,262 4/3/2020
4.1.3 1,041 3/27/2020
4.1.2 1,687 3/12/2020
4.1.1 861 3/5/2020
4.1.0 4,036 1/20/2020
4.1.0-preview-04 326 1/5/2020
4.1.0-preview-03 422 10/3/2019
4.1.0-preview-02 447 8/25/2019
4.1.0-preview-01 6,307 8/21/2019
4.0.7 21,896 9/4/2019
4.0.6 740 8/29/2019
4.0.5 21,511 6/8/2019
4.0.5-preview-01 6,357 6/7/2019
4.0.4 10,924 5/1/2019
4.0.3 7,431 4/10/2019
4.0.2 6,971 3/30/2019
4.0.1 6,374 3/28/2019
4.0.0 8,715 3/4/2019
4.0.0-preview-02 6,394 2/22/2019
4.0.0-preview-01 12,226 12/1/2018
3.1.0-preview-07 6,621 11/20/2018
3.0.2 38,976 7/11/2018
3.0.1 6,786 7/7/2018
3.0.0 7,025 6/24/2018
3.0.0-preview-12 6,598 6/6/2018
3.0.0-preview-11 6,870 3/17/2018
3.0.0-preview-10 6,608 3/13/2018
3.0.0-preview-09 8,083 2/21/2018
3.0.0-preview-08 6,564 2/12/2018
3.0.0-preview-07 6,603 2/9/2018
3.0.0-preview-06 6,606 2/8/2018
3.0.0-preview-05 6,626 2/5/2018
3.0.0-preview-04 6,599 2/1/2018
3.0.0-preview-03 6,655 12/3/2017
3.0.0-preview-02 7,078 11/14/2017
3.0.0-preview-01 6,703 10/1/2017
2.12.10 21,368 4/11/2018
2.12.9 6,881 4/7/2018
2.12.8 7,735 3/13/2018
2.12.7 10,904 1/19/2018
2.12.6 8,241 12/21/2017
2.12.5 16,974 10/30/2017
2.12.4 14,736 10/17/2017
2.12.3 8,528 10/2/2017
2.12.2 7,323 9/17/2017
2.12.1 6,789 9/9/2017
2.12.0 8,042 9/1/2017
2.12.0-preview-01 6,571 8/29/2017
2.11.6 10,494 7/18/2017
2.11.5 6,744 7/12/2017
2.11.4 7,138 6/28/2017
2.11.3 9,102 6/1/2017
2.11.2 6,628 6/1/2017
2.11.1 6,723 5/31/2017
2.11.0 6,646 5/30/2017
2.11.0-preview-02 6,810 3/15/2017
2.11.0-preview-01 6,620 3/10/2017
2.10.7 10,374 5/3/2017
2.10.6 43,968 4/20/2017
2.10.5 7,060 4/4/2017
2.10.4 6,787 3/28/2017
2.10.3 6,773 3/25/2017
2.10.2 11,104 3/14/2017
2.10.1 21,539 2/18/2017
2.10.0 12,725 2/1/2017
2.9.7 8,137 1/12/2017
2.9.6 7,354 12/30/2016
2.9.5 6,713 12/26/2016
2.9.4 7,159 12/10/2016
2.9.3 6,773 12/8/2016
2.9.2 6,817 12/3/2016
2.9.1 8,175 11/19/2016
2.9.0 6,763 11/17/2016
2.8.5 7,331 11/2/2016
2.8.4 6,795 10/28/2016
2.8.3 17,740 10/20/2016
2.8.2 7,324 10/20/2016
2.8.1 6,674 10/19/2016
2.8.0 6,653 10/18/2016
2.8.0-preview-01 6,607 10/13/2016
2.7.1 7,872 9/1/2016
2.7.0 7,135 8/19/2016
2.6.4 7,758 7/29/2016
2.6.3 6,906 7/9/2016
2.6.2 9,366 6/13/2016
2.6.0 6,804 6/10/2016
2.5.1 7,653 6/7/2016
2.5.0 8,968 5/24/2016
2.4.3 7,213 5/7/2016
2.4.2 7,101 4/26/2016
2.4.1 6,800 4/16/2016
2.4.0 7,067 4/14/2016
2.3.0 7,676 3/30/2016
2.2.2 9,113 3/10/2016
2.2.1 6,740 3/8/2016
2.2.0 7,663 2/26/2016
2.1.3 9,354 1/17/2016
2.1.2 6,833 1/15/2016
2.1.1 7,074 1/4/2016
2.1.0 7,155 12/4/2015
2.0.2 6,954 12/1/2015
2.0.1 6,720 11/27/2015
2.0.0 40,299 11/19/2015
2.0.0-rc4build353 6,634 11/18/2015
2.0.0-rc4build352 6,638 11/17/2015
2.0.0-rc4build351 6,667 11/17/2015
2.0.0-rc4build350 6,632 11/17/2015
2.0.0-rc4build349 6,660 11/12/2015
2.0.0-rc4build348 6,628 11/12/2015
2.0.0-rc4build347 6,631 11/12/2015
2.0.0-rc4build346 6,600 11/12/2015
2.0.0-rc4build345 6,616 11/12/2015
2.0.0-rc4build344 6,643 11/7/2015
2.0.0-rc4build343 6,651 11/5/2015
2.0.0-rc4build342 6,705 11/1/2015
2.0.0-rc4build341 6,652 10/29/2015
2.0.0-rc4build340 6,621 11/12/2015
2.0.0-rc4build339 6,623 11/7/2015
2.0.0-rc4build338 6,622 11/5/2015
2.0.0-rc4build337 6,610 11/1/2015
2.0.0-rc4build336 6,623 10/29/2015
2.0.0-rc3build340 6,630 10/26/2015
2.0.0-rc3build339 6,626 10/26/2015
2.0.0-rc3build338 6,634 10/23/2015
2.0.0-rc3build337 6,659 10/20/2015
2.0.0-rc3build336 6,649 10/19/2015
2.0.0-rc3build335 6,656 10/12/2015
2.0.0-rc3build334 6,649 10/10/2015
2.0.0-rc3build333 6,644 10/6/2015
2.0.0-rc3build332 6,650 10/6/2015
2.0.0-rc3build331 6,630 10/1/2015
2.0.0-rc3build330 6,633 10/1/2015
2.0.0-rc3build329 6,628 9/30/2015
2.0.0-rc3build328 6,705 9/26/2015
2.0.0-rc3build327 6,642 9/25/2015
2.0.0-rc3build326 6,642 9/25/2015
2.0.0-rc3build325 6,635 9/25/2015
2.0.0-rc3build324 6,672 9/11/2015
2.0.0-rc3build323 6,674 9/11/2015
2.0.0-rc3build322 6,677 9/11/2015
2.0.0-rc3build321 6,638 9/11/2015
2.0.0-rc3build320 6,645 9/11/2015
2.0.0-rc3build319 6,657 9/8/2015
2.0.0-rc3build318 6,641 9/6/2015
2.0.0-rc3build317 6,657 9/3/2015
2.0.0-rc3build316 6,668 9/2/2015
2.0.0-rc3build315 6,643 8/31/2015
2.0.0-rc3build314 6,637 9/8/2015
2.0.0-rc3build313 6,647 8/29/2015
2.0.0-rc3build312 6,675 8/23/2015
2.0.0-rc3build311 6,655 8/21/2015
2.0.0-rc3build310 6,663 8/18/2015
2.0.0-rc3build309 6,634 8/12/2015
2.0.0-rc3build308 6,661 8/6/2015
2.0.0-rc3build307 6,688 8/23/2015
2.0.0-rc3build306 6,638 8/6/2015
2.0.0-rc3build304 6,607 8/4/2015
2.0.0-rc3build303 6,598 8/6/2015
2.0.0-rc3build302 6,658 8/3/2015
2.0.0-rc3build301 6,690 7/31/2015
2.0.0-rc3build300 6,822 7/28/2015
2.0.0-rc3build299 6,630 7/28/2015
2.0.0-rc3build298 6,633 7/28/2015
2.0.0-rc3build297 6,619 7/31/2015
2.0.0-rc3build296 6,609 7/28/2015
2.0.0-rc2build297 6,627 7/26/2015
2.0.0-rc2build296 6,621 7/26/2015
2.0.0-rc2build295 6,645 7/24/2015
2.0.0-rc2build294 6,633 7/24/2015
2.0.0-rc2build293 6,638 7/26/2015
2.0.0-rc2build292 6,712 7/21/2015
2.0.0-rc2build291 6,610 7/24/2015
2.0.0-rc2build289 6,706 7/21/2015
2.0.0-rc1build371 6,641 1/11/2016
2.0.0-rc1build366 6,615 1/11/2016
2.0.0-rc1build288 6,673 7/4/2015
2.0.0-rc1build287 6,631 6/19/2015
2.0.0-rc1build286 6,874 6/8/2015
2.0.0-rc1build285 6,640 6/4/2015
2.0.0-rc1build284 6,634 6/3/2015
2.0.0-rc1build283 6,687 6/1/2015
2.0.0-rc1build282 6,636 5/29/2015
2.0.0-rc1build281 6,617 5/27/2015
2.0.0-rc1build280 6,608 5/27/2015
2.0.0-rc1build279 6,626 5/21/2015
2.0.0-rc1build278 6,635 5/16/2015
2.0.0-rc1build277 6,636 5/15/2015
2.0.0-rc1build276 6,619 5/21/2015
2.0.0-rc1build275 6,603 5/16/2015
2.0.0-rc1build274 6,705 5/15/2015
2.0.0-rc1build273 6,661 5/15/2015
2.0.0-rc1build272 6,643 5/14/2015
2.0.0-rc1build271 6,666 5/14/2015
2.0.0-rc1build270 6,619 5/13/2015
2.0.0-rc1build269 6,634 5/14/2015
2.0.0-rc1build268 6,668 5/12/2015
2.0.0-rc1build267 6,640 5/10/2015
2.0.0-rc1build266 6,625 5/7/2015
2.0.0-rc1build265 6,627 5/6/2015
2.0.0-rc1build264 6,696 5/5/2015
2.0.0-rc1build263 6,632 5/1/2015
2.0.0-rc1build262 6,652 4/30/2015
2.0.0-rc1build261 6,624 4/29/2015
2.0.0-rc1build260 6,694 4/28/2015
2.0.0-rc1build259 6,653 4/21/2015
2.0.0-rc1build258 6,652 4/29/2015
2.0.0-rc1build255 6,655 4/21/2015
2.0.0-preview256 6,663 4/15/2015
2.0.0-preview255 6,672 4/14/2015
2.0.0-preview254 6,655 4/14/2015
2.0.0-preview253 6,664 4/13/2015
2.0.0-preview252 6,660 4/10/2015
2.0.0-preview251 6,666 4/7/2015
2.0.0-preview250 6,675 4/6/2015
2.0.0-preview249 6,869 4/6/2015
2.0.0-preview248 6,663 4/7/2015
2.0.0-preview247 6,669 4/6/2015
2.0.0-preview246 6,669 4/6/2015
2.0.0-preview245 6,674 4/3/2015
2.0.0-preview244 6,653 4/3/2015
2.0.0-preview243 6,675 4/3/2015
2.0.0-preview242 6,684 4/2/2015
2.0.0-preview241 6,650 3/31/2015
2.0.0-preview240 6,664 3/31/2015
2.0.0-preview239 6,706 3/30/2015
2.0.0-preview238 6,663 3/30/2015
2.0.0-preview237 6,651 3/29/2015
2.0.0-preview236 6,667 3/28/2015
2.0.0-preview235 6,683 3/27/2015
2.0.0-preview234 6,663 3/27/2015
2.0.0-preview233 6,668 3/26/2015
2.0.0-preview232 6,651 3/26/2015
2.0.0-preview231 6,695 3/25/2015
2.0.0-preview230 6,681 3/25/2015
2.0.0-preview229 6,686 3/25/2015
2.0.0-preview228 6,672 3/23/2015
2.0.0-preview227 6,681 3/23/2015
2.0.0-preview226 6,664 3/19/2015
2.0.0-preview225 6,663 3/18/2015
2.0.0-preview224 6,658 3/18/2015
2.0.0-preview223 6,676 3/18/2015
2.0.0-preview222 6,658 3/17/2015
2.0.0-preview221 6,678 3/15/2015
2.0.0-preview220 6,661 3/14/2015
2.0.0-preview219 6,639 3/13/2015
2.0.0-preview218 6,666 3/11/2015
2.0.0-preview217 6,675 3/10/2015
2.0.0-preview216 6,728 3/10/2015
2.0.0-preview215 6,677 3/10/2015
2.0.0-preview214 6,683 3/10/2015
2.0.0-preview213 6,661 3/9/2015
2.0.0-preview212 6,657 3/6/2015
2.0.0-preview211 6,659 3/4/2015
2.0.0-preview210 6,680 3/4/2015
2.0.0-preview209 6,673 3/4/2015
2.0.0-preview208 6,665 3/3/2015
2.0.0-preview207 6,657 3/3/2015
2.0.0-preview206 6,663 3/3/2015
2.0.0-preview205 6,677 3/2/2015
2.0.0-preview204 6,674 3/2/2015
2.0.0-preview203 6,846 2/26/2015
2.0.0-preview202 6,659 2/25/2015
2.0.0-preview201 6,701 2/20/2015
2.0.0-preview200 6,795 2/20/2015
2.0.0-preview199 6,688 2/20/2015
2.0.0-preview198 6,668 2/19/2015
2.0.0-preview197 6,668 2/19/2015
2.0.0-preview196 6,669 2/19/2015
2.0.0-preview195 6,687 2/19/2015
2.0.0-preview194 6,713 2/18/2015
2.0.0-preview193 6,686 2/18/2015
2.0.0-preview192 6,762 2/17/2015
2.0.0-preview191 6,742 2/17/2015
2.0.0-preview190 6,779 2/17/2015
2.0.0-preview189 6,657 2/12/2015
2.0.0-preview188 6,689 2/11/2015
2.0.0-preview187 6,771 2/11/2015
2.0.0-preview186 6,831 2/11/2015
2.0.0-preview185 6,690 2/10/2015
2.0.0-preview184 6,672 2/10/2015
2.0.0-preview183 6,679 2/10/2015
2.0.0-preview182 6,715 2/9/2015
2.0.0-preview181 6,681 2/2/2015
2.0.0-preview180 6,691 2/2/2015
2.0.0-preview179 6,670 1/31/2015
2.0.0-preview178 6,679 1/30/2015
2.0.0-preview177 6,690 1/29/2015
2.0.0-preview176 6,755 1/24/2015
2.0.0-preview175 6,680 1/24/2015
2.0.0-preview174 6,753 1/23/2015
2.0.0-preview173 6,733 1/18/2015
2.0.0-preview172 6,686 1/19/2015
2.0.0-preview171 6,767 1/16/2015
2.0.0-preview170 6,690 1/16/2015
2.0.0-preview169 6,719 1/16/2015
2.0.0-preview168 6,689 1/16/2015
2.0.0-preview167 6,761 1/16/2015
2.0.0-preview166 6,697 1/15/2015
2.0.0-preview165 6,728 1/15/2015
2.0.0-preview164 6,686 1/15/2015
2.0.0-preview163 6,720 1/15/2015
2.0.0-preview162 6,732 1/14/2015
2.0.0-preview161 6,696 1/14/2015
2.0.0-preview160 6,676 1/14/2015
2.0.0-preview159 6,691 1/14/2015
2.0.0-preview158 6,690 1/14/2015
2.0.0-preview157 6,674 1/14/2015
2.0.0-preview156 6,681 1/13/2015
2.0.0-preview155 6,698 1/13/2015
2.0.0-preview154 6,762 1/12/2015
2.0.0-preview153 6,701 1/12/2015
2.0.0-preview152 6,689 1/9/2015
2.0.0-preview151 6,691 1/9/2015
2.0.0-preview150 6,700 1/8/2015
2.0.0-preview148 6,698 1/8/2015
2.0.0-preview147 6,682 1/3/2015
2.0.0-preview146 6,715 1/3/2015
2.0.0-preview145 6,764 12/30/2014
2.0.0-preview144 6,729 12/29/2014
2.0.0-preview143 6,743 12/29/2014
2.0.0-preview142 6,729 12/23/2014
2.0.0-preview141 6,697 12/23/2014
2.0.0-preview140 6,708 12/23/2014
2.0.0-preview139 6,783 12/20/2014
2.0.0-preview138 6,682 12/20/2014
2.0.0-preview137 6,695 12/20/2014
2.0.0-preview136 6,704 12/20/2014
2.0.0-preview135 6,664 12/20/2014
2.0.0-preview133 6,807 12/18/2014
2.0.0-preview132 6,734 12/15/2014
2.0.0-preview131 6,713 12/14/2014
2.0.0-preview130 6,687 12/12/2014
2.0.0-preview129 6,717 12/12/2014
2.0.0-preview128 6,685 12/11/2014
2.0.0-preview127 6,717 12/10/2014
2.0.0-preview126 6,721 12/10/2014
2.0.0-preview125 6,707 12/8/2014
2.0.0-preview124 6,736 12/8/2014
2.0.0-preview123 6,709 12/7/2014
2.0.0-preview119 6,810 11/24/2014
2.0.0-preview118 6,762 11/21/2014
2.0.0-preview116 7,116 11/13/2014
2.0.0-preview115 6,939 11/6/2014
2.0.0-preview114 7,121 11/6/2014
2.0.0-preview113 6,901 11/5/2014
2.0.0-preview112 6,912 11/5/2014
2.0.0-preview110 7,151 11/5/2014
2.0.0-preview109 7,173 11/4/2014
2.0.0-preview108 7,021 10/31/2014
2.0.0-preview107 7,240 10/31/2014
2.0.0-preview105 7,323 10/31/2014
2.0.0-preview104 6,674 10/29/2014
2.0.0-preview103 6,688 10/27/2014
2.0.0-preview102 6,707 10/27/2014
2.0.0-preview101 6,712 10/24/2014
2.0.0-beta258 6,668 4/21/2015
2.0.0-beta254 6,723 4/20/2015
1.4.1 10,879 10/9/2014
1.4.0 7,139 9/10/2014
1.3.1 6,879 8/18/2014
1.3.0 7,015 7/16/2014
1.2.2 6,957 7/2/2014
1.2.1 6,777 6/30/2014
1.2.0 7,246 1/9/2014
1.1.1 6,816 12/26/2013
1.1.0 6,748 12/26/2013
1.0.11 7,071 12/24/2013
Show less