DryIoc 4.1.2

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.2
dotnet add package DryIoc --version 4.1.2
<PackageReference Include="DryIoc" Version="4.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DryIoc --version 4.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DryIoc, 4.1.2"
#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.2

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

Release Notes

## v4.1.2 Bug-fix release

- #236 Additional default parameter for Made creation public API introduced binary incompatibility
- #237 UseInstance with interface-based serviceType does not replace previous instance

## 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 84 5/10/2021
4.7.6 610 4/21/2021
4.7.5 518 4/4/2021
4.7.4 1,822 2/26/2021
4.7.3 1,250 2/9/2021
4.7.2 7,192 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,812 10/28/2020
4.5.0 3,146 10/12/2020
4.4.1 5,593 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,261 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,034 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,883 9/4/2019
4.0.6 740 8/29/2019
4.0.5 21,507 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,406 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,965 7/11/2018
3.0.1 6,780 7/7/2018
3.0.0 7,019 6/24/2018
3.0.0-preview-12 6,592 6/6/2018
3.0.0-preview-11 6,864 3/17/2018
3.0.0-preview-10 6,602 3/13/2018
3.0.0-preview-09 8,077 2/21/2018
3.0.0-preview-08 6,558 2/12/2018
3.0.0-preview-07 6,597 2/9/2018
3.0.0-preview-06 6,600 2/8/2018
3.0.0-preview-05 6,620 2/5/2018
3.0.0-preview-04 6,599 2/1/2018
3.0.0-preview-03 6,649 12/3/2017
3.0.0-preview-02 7,072 11/14/2017
3.0.0-preview-01 6,697 10/1/2017
2.12.10 21,362 4/11/2018
2.12.9 6,875 4/7/2018
2.12.8 7,729 3/13/2018
2.12.7 10,898 1/19/2018
2.12.6 8,235 12/21/2017
2.12.5 16,968 10/30/2017
2.12.4 14,730 10/17/2017
2.12.3 8,522 10/2/2017
2.12.2 7,317 9/17/2017
2.12.1 6,783 9/9/2017
2.12.0 8,036 9/1/2017
2.12.0-preview-01 6,565 8/29/2017
2.11.6 10,488 7/18/2017
2.11.5 6,738 7/12/2017
2.11.4 7,132 6/28/2017
2.11.3 9,096 6/1/2017
2.11.2 6,622 6/1/2017
2.11.1 6,717 5/31/2017
2.11.0 6,640 5/30/2017
2.11.0-preview-02 6,804 3/15/2017
2.11.0-preview-01 6,614 3/10/2017
2.10.7 10,368 5/3/2017
2.10.6 43,960 4/20/2017
2.10.5 7,054 4/4/2017
2.10.4 6,781 3/28/2017
2.10.3 6,770 3/25/2017
2.10.2 11,101 3/14/2017
2.10.1 21,536 2/18/2017
2.10.0 12,722 2/1/2017
2.9.7 8,134 1/12/2017
2.9.6 7,351 12/30/2016
2.9.5 6,710 12/26/2016
2.9.4 7,156 12/10/2016
2.9.3 6,770 12/8/2016
2.9.2 6,814 12/3/2016
2.9.1 8,172 11/19/2016
2.9.0 6,760 11/17/2016
2.8.5 7,328 11/2/2016
2.8.4 6,792 10/28/2016
2.8.3 17,727 10/20/2016
2.8.2 7,321 10/20/2016
2.8.1 6,671 10/19/2016
2.8.0 6,650 10/18/2016
2.8.0-preview-01 6,604 10/13/2016
2.7.1 7,869 9/1/2016
2.7.0 7,132 8/19/2016
2.6.4 7,753 7/29/2016
2.6.3 6,903 7/9/2016
2.6.2 9,363 6/13/2016
2.6.0 6,801 6/10/2016
2.5.1 7,650 6/7/2016
2.5.0 8,965 5/24/2016
2.4.3 7,210 5/7/2016
2.4.2 7,098 4/26/2016
2.4.1 6,797 4/16/2016
2.4.0 7,064 4/14/2016
2.3.0 7,673 3/30/2016
2.2.2 9,110 3/10/2016
2.2.1 6,737 3/8/2016
2.2.0 7,660 2/26/2016
2.1.3 9,351 1/17/2016
2.1.2 6,830 1/15/2016
2.1.1 7,071 1/4/2016
2.1.0 7,152 12/4/2015
2.0.2 6,951 12/1/2015
2.0.1 6,717 11/27/2015
2.0.0 40,296 11/19/2015
2.0.0-rc4build353 6,631 11/18/2015
2.0.0-rc4build352 6,635 11/17/2015
2.0.0-rc4build351 6,664 11/17/2015
2.0.0-rc4build350 6,629 11/17/2015
2.0.0-rc4build349 6,657 11/12/2015
2.0.0-rc4build348 6,625 11/12/2015
2.0.0-rc4build347 6,628 11/12/2015
2.0.0-rc4build346 6,597 11/12/2015
2.0.0-rc4build345 6,613 11/12/2015
2.0.0-rc4build344 6,640 11/7/2015
2.0.0-rc4build343 6,648 11/5/2015
2.0.0-rc4build342 6,702 11/1/2015
2.0.0-rc4build341 6,649 10/29/2015
2.0.0-rc4build340 6,618 11/12/2015
2.0.0-rc4build339 6,620 11/7/2015
2.0.0-rc4build338 6,619 11/5/2015
2.0.0-rc4build337 6,607 11/1/2015
2.0.0-rc4build336 6,620 10/29/2015
2.0.0-rc3build340 6,627 10/26/2015
2.0.0-rc3build339 6,623 10/26/2015
2.0.0-rc3build338 6,631 10/23/2015
2.0.0-rc3build337 6,656 10/20/2015
2.0.0-rc3build336 6,646 10/19/2015
2.0.0-rc3build335 6,653 10/12/2015
2.0.0-rc3build334 6,646 10/10/2015
2.0.0-rc3build333 6,641 10/6/2015
2.0.0-rc3build332 6,647 10/6/2015
2.0.0-rc3build331 6,627 10/1/2015
2.0.0-rc3build330 6,630 10/1/2015
2.0.0-rc3build329 6,625 9/30/2015
2.0.0-rc3build328 6,702 9/26/2015
2.0.0-rc3build327 6,639 9/25/2015
2.0.0-rc3build326 6,639 9/25/2015
2.0.0-rc3build325 6,632 9/25/2015
2.0.0-rc3build324 6,669 9/11/2015
2.0.0-rc3build323 6,671 9/11/2015
2.0.0-rc3build322 6,674 9/11/2015
2.0.0-rc3build321 6,635 9/11/2015
2.0.0-rc3build320 6,642 9/11/2015
2.0.0-rc3build319 6,654 9/8/2015
2.0.0-rc3build318 6,638 9/6/2015
2.0.0-rc3build317 6,654 9/3/2015
2.0.0-rc3build316 6,665 9/2/2015
2.0.0-rc3build315 6,640 8/31/2015
2.0.0-rc3build314 6,634 9/8/2015
2.0.0-rc3build313 6,644 8/29/2015
2.0.0-rc3build312 6,672 8/23/2015
2.0.0-rc3build311 6,652 8/21/2015
2.0.0-rc3build310 6,660 8/18/2015
2.0.0-rc3build309 6,631 8/12/2015
2.0.0-rc3build308 6,658 8/6/2015
2.0.0-rc3build307 6,685 8/23/2015
2.0.0-rc3build306 6,635 8/6/2015
2.0.0-rc3build304 6,604 8/4/2015
2.0.0-rc3build303 6,595 8/6/2015
2.0.0-rc3build302 6,655 8/3/2015
2.0.0-rc3build301 6,687 7/31/2015
2.0.0-rc3build300 6,819 7/28/2015
2.0.0-rc3build299 6,627 7/28/2015
2.0.0-rc3build298 6,630 7/28/2015
2.0.0-rc3build297 6,616 7/31/2015
2.0.0-rc3build296 6,606 7/28/2015
2.0.0-rc2build297 6,624 7/26/2015
2.0.0-rc2build296 6,618 7/26/2015
2.0.0-rc2build295 6,642 7/24/2015
2.0.0-rc2build294 6,630 7/24/2015
2.0.0-rc2build293 6,635 7/26/2015
2.0.0-rc2build292 6,709 7/21/2015
2.0.0-rc2build291 6,607 7/24/2015
2.0.0-rc2build289 6,703 7/21/2015
2.0.0-rc1build371 6,638 1/11/2016
2.0.0-rc1build366 6,612 1/11/2016
2.0.0-rc1build288 6,670 7/4/2015
2.0.0-rc1build287 6,628 6/19/2015
2.0.0-rc1build286 6,871 6/8/2015
2.0.0-rc1build285 6,637 6/4/2015
2.0.0-rc1build284 6,631 6/3/2015
2.0.0-rc1build283 6,684 6/1/2015
2.0.0-rc1build282 6,633 5/29/2015
2.0.0-rc1build281 6,614 5/27/2015
2.0.0-rc1build280 6,605 5/27/2015
2.0.0-rc1build279 6,623 5/21/2015
2.0.0-rc1build278 6,632 5/16/2015
2.0.0-rc1build277 6,633 5/15/2015
2.0.0-rc1build276 6,616 5/21/2015
2.0.0-rc1build275 6,600 5/16/2015
2.0.0-rc1build274 6,702 5/15/2015
2.0.0-rc1build273 6,658 5/15/2015
2.0.0-rc1build272 6,640 5/14/2015
2.0.0-rc1build271 6,663 5/14/2015
2.0.0-rc1build270 6,616 5/13/2015
2.0.0-rc1build269 6,631 5/14/2015
2.0.0-rc1build268 6,665 5/12/2015
2.0.0-rc1build267 6,637 5/10/2015
2.0.0-rc1build266 6,622 5/7/2015
2.0.0-rc1build265 6,624 5/6/2015
2.0.0-rc1build264 6,693 5/5/2015
2.0.0-rc1build263 6,629 5/1/2015
2.0.0-rc1build262 6,649 4/30/2015
2.0.0-rc1build261 6,621 4/29/2015
2.0.0-rc1build260 6,691 4/28/2015
2.0.0-rc1build259 6,650 4/21/2015
2.0.0-rc1build258 6,649 4/29/2015
2.0.0-rc1build255 6,652 4/21/2015
2.0.0-preview256 6,660 4/15/2015
2.0.0-preview255 6,669 4/14/2015
2.0.0-preview254 6,652 4/14/2015
2.0.0-preview253 6,661 4/13/2015
2.0.0-preview252 6,657 4/10/2015
2.0.0-preview251 6,663 4/7/2015
2.0.0-preview250 6,672 4/6/2015
2.0.0-preview249 6,866 4/6/2015
2.0.0-preview248 6,660 4/7/2015
2.0.0-preview247 6,666 4/6/2015
2.0.0-preview246 6,666 4/6/2015
2.0.0-preview245 6,671 4/3/2015
2.0.0-preview244 6,650 4/3/2015
2.0.0-preview243 6,672 4/3/2015
2.0.0-preview242 6,681 4/2/2015
2.0.0-preview241 6,647 3/31/2015
2.0.0-preview240 6,661 3/31/2015
2.0.0-preview239 6,703 3/30/2015
2.0.0-preview238 6,660 3/30/2015
2.0.0-preview237 6,648 3/29/2015
2.0.0-preview236 6,664 3/28/2015
2.0.0-preview235 6,680 3/27/2015
2.0.0-preview234 6,660 3/27/2015
2.0.0-preview233 6,665 3/26/2015
2.0.0-preview232 6,648 3/26/2015
2.0.0-preview231 6,692 3/25/2015
2.0.0-preview230 6,678 3/25/2015
2.0.0-preview229 6,683 3/25/2015
2.0.0-preview228 6,669 3/23/2015
2.0.0-preview227 6,678 3/23/2015
2.0.0-preview226 6,661 3/19/2015
2.0.0-preview225 6,660 3/18/2015
2.0.0-preview224 6,655 3/18/2015
2.0.0-preview223 6,673 3/18/2015
2.0.0-preview222 6,655 3/17/2015
2.0.0-preview221 6,675 3/15/2015
2.0.0-preview220 6,658 3/14/2015
2.0.0-preview219 6,636 3/13/2015
2.0.0-preview218 6,663 3/11/2015
2.0.0-preview217 6,672 3/10/2015
2.0.0-preview216 6,725 3/10/2015
2.0.0-preview215 6,674 3/10/2015
2.0.0-preview214 6,680 3/10/2015
2.0.0-preview213 6,658 3/9/2015
2.0.0-preview212 6,654 3/6/2015
2.0.0-preview211 6,656 3/4/2015
2.0.0-preview210 6,677 3/4/2015
2.0.0-preview209 6,670 3/4/2015
2.0.0-preview208 6,662 3/3/2015
2.0.0-preview207 6,654 3/3/2015
2.0.0-preview206 6,660 3/3/2015
2.0.0-preview205 6,674 3/2/2015
2.0.0-preview204 6,671 3/2/2015
2.0.0-preview203 6,843 2/26/2015
2.0.0-preview202 6,656 2/25/2015
2.0.0-preview201 6,698 2/20/2015
2.0.0-preview200 6,792 2/20/2015
2.0.0-preview199 6,685 2/20/2015
2.0.0-preview198 6,665 2/19/2015
2.0.0-preview197 6,665 2/19/2015
2.0.0-preview196 6,666 2/19/2015
2.0.0-preview195 6,684 2/19/2015
2.0.0-preview194 6,710 2/18/2015
2.0.0-preview193 6,683 2/18/2015
2.0.0-preview192 6,759 2/17/2015
2.0.0-preview191 6,739 2/17/2015
2.0.0-preview190 6,776 2/17/2015
2.0.0-preview189 6,654 2/12/2015
2.0.0-preview188 6,686 2/11/2015
2.0.0-preview187 6,768 2/11/2015
2.0.0-preview186 6,828 2/11/2015
2.0.0-preview185 6,687 2/10/2015
2.0.0-preview184 6,669 2/10/2015
2.0.0-preview183 6,676 2/10/2015
2.0.0-preview182 6,712 2/9/2015
2.0.0-preview181 6,678 2/2/2015
2.0.0-preview180 6,688 2/2/2015
2.0.0-preview179 6,667 1/31/2015
2.0.0-preview178 6,676 1/30/2015
2.0.0-preview177 6,687 1/29/2015
2.0.0-preview176 6,752 1/24/2015
2.0.0-preview175 6,677 1/24/2015
2.0.0-preview174 6,750 1/23/2015
2.0.0-preview173 6,730 1/18/2015
2.0.0-preview172 6,683 1/19/2015
2.0.0-preview171 6,764 1/16/2015
2.0.0-preview170 6,687 1/16/2015
2.0.0-preview169 6,716 1/16/2015
2.0.0-preview168 6,686 1/16/2015
2.0.0-preview167 6,758 1/16/2015
2.0.0-preview166 6,694 1/15/2015
2.0.0-preview165 6,725 1/15/2015
2.0.0-preview164 6,686 1/15/2015
2.0.0-preview163 6,717 1/15/2015
2.0.0-preview162 6,732 1/14/2015
2.0.0-preview161 6,692 1/14/2015
2.0.0-preview160 6,673 1/14/2015
2.0.0-preview159 6,688 1/14/2015
2.0.0-preview158 6,687 1/14/2015
2.0.0-preview157 6,671 1/14/2015
2.0.0-preview156 6,678 1/13/2015
2.0.0-preview155 6,695 1/13/2015
2.0.0-preview154 6,759 1/12/2015
2.0.0-preview153 6,698 1/12/2015
2.0.0-preview152 6,686 1/9/2015
2.0.0-preview151 6,688 1/9/2015
2.0.0-preview150 6,697 1/8/2015
2.0.0-preview148 6,695 1/8/2015
2.0.0-preview147 6,679 1/3/2015
2.0.0-preview146 6,715 1/3/2015
2.0.0-preview145 6,761 12/30/2014
2.0.0-preview144 6,726 12/29/2014
2.0.0-preview143 6,743 12/29/2014
2.0.0-preview142 6,726 12/23/2014
2.0.0-preview141 6,694 12/23/2014
2.0.0-preview140 6,705 12/23/2014
2.0.0-preview139 6,783 12/20/2014
2.0.0-preview138 6,679 12/20/2014
2.0.0-preview137 6,692 12/20/2014
2.0.0-preview136 6,701 12/20/2014
2.0.0-preview135 6,661 12/20/2014
2.0.0-preview133 6,804 12/18/2014
2.0.0-preview132 6,731 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,682 12/11/2014
2.0.0-preview127 6,714 12/10/2014
2.0.0-preview126 6,718 12/10/2014
2.0.0-preview125 6,704 12/8/2014
2.0.0-preview124 6,733 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,898 11/5/2014
2.0.0-preview112 6,909 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,665 4/21/2015
2.0.0-beta254 6,720 4/20/2015
1.4.1 10,869 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