DryIoc 4.0.4

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

Requires NuGet 3.3.0 or higher.

Install-Package DryIoc -Version 4.0.4
dotnet add package DryIoc --version 4.0.4
<PackageReference Include="DryIoc" Version="4.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DryIoc --version 4.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

## v4.0.4 Release notes

- fixed: #116: DryIoc Resolve with decorators goes wrong for parallel execution
- fixed: #119: v4.0.3 packages were targeting only .NET 4.5 and .NET Standard 2.0
- fixed: #120: V4.0.3 double dryioc break the build
- fixed: #121: FastExpressionCompiler.cs and Expression.cs code comment out in .NetFramework 4.7
- fixed: #124: Stackoverflow exception 4.0.3

## v4.0.3 Release notes

- fixed: #109: Cannot inject a struct using a Func wrapper
- fixed: #114: Resolve Action<T>

## v4.0.2 Release notes

- fixed: #100: ResolveMany with Meta does NOT work but collection with Meta does work

## v4.0.1 Release notes

- added: #95: Serializable ContainerException for supported targets
- fixed: #97: Resolving last registration from multiple default services bug
- fixed: #89: DryIoC.CommonServiceLocator.dll package out-of-date link

## v4.0.0 Release notes

### Highlights

- DryIoc.dll and all extensions are strongly-signed.
- Greatly improved performance and decreased memory allocations for bootstrapping and first-time resolution, as well as for the rest of operations. [The results](https://github.com/dadhi/DryIoc/issues/26#issuecomment-466460255) were measured on realistic mid-sized object graph with ~40 dependencies and mixed registration types.
- `IResolver` is directly implementing (`IServiceProvider`)[https://docs.microsoft.com/en-us/dotnet/api/system.iserviceprovider?view=netframework-4.7.2] for supported platforms
- `UseInstance` is split into `RegisterInstance` and `Use` methods #78
- The docs now are generated from `.cs` files in _DryIoc.Docs_ project with up-to-date runnable examples using [CsToMd](https://github.com/dadhi/Cstomd) project.

### Features

- added: #4 Rule for Func and Lazy to be resolved even without requested service registered
- added: #8 Parity of registration methods between IContainer and IRegistrator (RegisterMapping and RegisterPlaceholder are available in IRegistrator)
- added: #9 RegisterMany should indicate if no registration was made
- added: #11 Resolution root bound dependency expression de-duplication
- added: #17 Rules.DefaultRegistrationServiceKey enhancement
- added: #20 Enhance error message with current container Rules info
- added: #32 Integrate MediatR like middleware directly to DryIoc #32
- added: #39 For troubleshooting purposes add ability to opt-out FastExpressionCompiler
- Added: #45 Consider expression interpretation to speed-up first time resolution
- added: #78 Split UseInstance two roles into separate RegisterInstance and Use
- added: DryIoc IResolver now directly implements IServiceProvider - no need for BuildServiceProvider anymore
- added: DryIoc.Rules.Rules.MicrosoftDependencyInjectionRules - the set of rules for MS.DI available directly in DryIoc
- added: FactoryInfo.Of(MemberInfo factoryMember, object factoryInstance)
- added: Explicit Factory.RegistrationOrder and adapted its usage for open-generics
- added: IRegistrator.GetRegisteredFactories
- added: FactoryType to Registrator.RegisterMapping
- added: AsyncExecutionFlowScopeContext.Default member
- added: Support for FEC v2.0

### Fixes

- fixed: #6 Open generic singleton service registration that satisfies multiple interfaces
- fixed: #7 Context-based injection
- fixed: #16 AutoConcreteTypeResolution should not consider a primitive type
- fixed: #25 Decorator with serviceKey throws exception which gives invalid advice on how to fix the issue for the most common reason to use the servicekey
- fixed: #26 Speed Optimization for short living applications
- fixed: #27 DryIoc cold start performance
- fixed: #28 FastExpressionCompiler is not used in Net Standard 1.3, 2.0 packages and not used in .Net Core
- fixed: #29 Resolve caches object[] args values
- fixed: #33 Memory leak with ResolveManyBehavior.AzLazyEnumerable?
- fixed: #41 ErrorCode: RegisteredFactoryMethodResultTypesIsNotAssignableToImplementationType
- fixed: #46 Operation is not supported on this platform exception on Xamarin iOS
- fixed: #61 Rules.SelectLastRegisteredFactory() does not account for OpenGenerics
- fixed: #63 Func wrapper resolving #63
- fixed: #75 Scoped call to Resolve() with args seems to leak memory
- fixed: BB-593 Add auto-generated tag to PCL FEC
- fixed: BB-594 Conflicting type is not working in .NET Core 2.1
- fixed: BB-596 The problem was in non-public service type- fixed: RegisterMapping for open-generic service type
- fixed: Using facadeKey in CreateFacade

  • .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.

Version History

Version Downloads Last updated
4.0.4 566 5/1/2019
4.0.3 518 4/10/2019
4.0.2 312 3/30/2019
4.0.1 85 3/28/2019
4.0.0 654 3/4/2019
4.0.0-preview-02 97 2/22/2019
4.0.0-preview-01 1,437 12/1/2018
3.1.0-preview-07 151 11/20/2018
3.0.2 9,055 7/11/2018
3.0.1 236 7/7/2018
3.0.0 543 6/24/2018
3.0.0-preview-12 222 6/6/2018
3.0.0-preview-11 445 3/17/2018
3.0.0-preview-10 213 3/13/2018
3.0.0-preview-09 1,684 2/21/2018
3.0.0-preview-08 216 2/12/2018
3.0.0-preview-07 213 2/9/2018
3.0.0-preview-06 218 2/8/2018
3.0.0-preview-05 229 2/5/2018
3.0.0-preview-04 214 2/1/2018
3.0.0-preview-03 316 12/3/2017
3.0.0-preview-02 708 11/14/2017
3.0.0-preview-01 263 10/1/2017
2.12.10 5,895 4/11/2018
2.12.9 422 4/7/2018
2.12.8 1,268 3/13/2018
2.12.7 3,195 1/19/2018
2.12.6 1,177 12/21/2017
2.12.5 5,174 10/30/2017
2.12.4 486 10/17/2017
2.12.3 1,972 10/2/2017
2.12.2 853 9/17/2017
2.12.1 382 9/9/2017
2.12.0 1,404 9/1/2017
2.12.0-preview-01 213 8/29/2017
2.11.6 3,944 7/18/2017
2.11.5 366 7/12/2017
2.11.4 630 6/28/2017
2.11.3 778 6/1/2017
2.11.2 230 6/1/2017
2.11.1 296 5/31/2017
2.11.0 266 5/30/2017
2.11.0-preview-02 414 3/15/2017
2.11.0-preview-01 234 3/10/2017
2.10.7 2,085 5/3/2017
2.10.6 32,072 4/20/2017
2.10.5 646 4/4/2017
2.10.4 404 3/28/2017
2.10.3 403 3/25/2017
2.10.2 3,600 3/14/2017
2.10.1 1,763 2/18/2017
2.10.0 5,053 2/1/2017
2.9.7 1,524 1/12/2017
2.9.6 956 12/30/2016
2.9.5 325 12/26/2016
2.9.4 736 12/10/2016
2.9.3 387 12/8/2016
2.9.2 426 12/3/2016
2.9.1 1,653 11/19/2016
2.9.0 322 11/17/2016
2.8.5 865 11/2/2016
2.8.4 436 10/28/2016
2.8.3 5,406 10/20/2016
2.8.2 501 10/20/2016
2.8.1 295 10/19/2016
2.8.0 274 10/18/2016
2.8.0-preview-01 251 10/13/2016
2.7.1 1,363 9/1/2016
2.7.0 746 8/19/2016
2.6.4 940 7/29/2016
2.6.3 526 7/9/2016
2.6.2 2,969 6/13/2016
2.6.0 376 6/10/2016
2.5.1 910 6/7/2016
2.5.0 1,954 5/24/2016
2.4.3 788 5/7/2016
2.4.2 681 4/26/2016
2.4.1 429 4/16/2016
2.4.0 552 4/14/2016
2.3.0 1,131 3/30/2016
2.2.2 1,866 3/10/2016
2.2.1 328 3/8/2016
2.2.0 600 2/26/2016
2.1.3 1,530 1/17/2016
2.1.2 370 1/15/2016
2.1.1 614 1/4/2016
2.1.0 774 12/4/2015
2.0.2 583 12/1/2015
2.0.1 343 11/27/2015
2.0.0 1,177 11/19/2015
2.0.0-rc4build353 298 11/18/2015
2.0.0-rc4build352 285 11/17/2015
2.0.0-rc4build351 315 11/17/2015
2.0.0-rc4build350 288 11/17/2015
2.0.0-rc4build349 308 11/12/2015
2.0.0-rc4build348 307 11/12/2015
2.0.0-rc4build347 287 11/12/2015
2.0.0-rc4build346 269 11/12/2015
2.0.0-rc4build345 266 11/12/2015
2.0.0-rc4build344 299 11/7/2015
2.0.0-rc4build343 289 11/5/2015
2.0.0-rc4build342 372 11/1/2015
2.0.0-rc4build341 289 10/29/2015
2.0.0-rc4build340 268 11/12/2015
2.0.0-rc4build339 271 11/7/2015
2.0.0-rc4build338 278 11/5/2015
2.0.0-rc4build337 276 11/1/2015
2.0.0-rc4build336 283 10/29/2015
2.0.0-rc3build340 275 10/26/2015
2.0.0-rc3build339 286 10/26/2015
2.0.0-rc3build338 287 10/23/2015
2.0.0-rc3build337 301 10/20/2015
2.0.0-rc3build336 309 10/19/2015
2.0.0-rc3build335 298 10/12/2015
2.0.0-rc3build334 278 10/10/2015
2.0.0-rc3build333 291 10/6/2015
2.0.0-rc3build332 294 10/6/2015
2.0.0-rc3build331 283 10/1/2015
2.0.0-rc3build330 277 10/1/2015
2.0.0-rc3build329 288 9/30/2015
2.0.0-rc3build328 345 9/26/2015
2.0.0-rc3build327 285 9/25/2015
2.0.0-rc3build326 303 9/25/2015
2.0.0-rc3build325 288 9/25/2015
2.0.0-rc3build324 328 9/11/2015
2.0.0-rc3build323 313 9/11/2015
2.0.0-rc3build322 322 9/11/2015
2.0.0-rc3build321 291 9/11/2015
2.0.0-rc3build320 279 9/11/2015
2.0.0-rc3build319 312 9/8/2015
2.0.0-rc3build318 300 9/6/2015
2.0.0-rc3build317 310 9/3/2015
2.0.0-rc3build316 322 9/2/2015
2.0.0-rc3build315 314 8/31/2015
2.0.0-rc3build314 301 9/8/2015
2.0.0-rc3build313 300 8/29/2015
2.0.0-rc3build312 319 8/23/2015
2.0.0-rc3build311 300 8/21/2015
2.0.0-rc3build310 312 8/18/2015
2.0.0-rc3build309 286 8/12/2015
2.0.0-rc3build308 293 8/6/2015
2.0.0-rc3build307 326 8/23/2015
2.0.0-rc3build306 288 8/6/2015
2.0.0-rc3build304 275 8/4/2015
2.0.0-rc3build303 266 8/6/2015
2.0.0-rc3build302 300 8/3/2015
2.0.0-rc3build301 337 7/31/2015
2.0.0-rc3build300 474 7/28/2015
2.0.0-rc3build299 275 7/28/2015
2.0.0-rc3build298 280 7/28/2015
2.0.0-rc3build297 269 7/31/2015
2.0.0-rc3build296 275 7/28/2015
2.0.0-rc2build297 289 7/26/2015
2.0.0-rc2build296 269 7/26/2015
2.0.0-rc2build295 283 7/24/2015
2.0.0-rc2build294 289 7/24/2015
2.0.0-rc2build293 282 7/26/2015
2.0.0-rc2build292 328 7/21/2015
2.0.0-rc2build291 274 7/24/2015
2.0.0-rc2build289 333 7/21/2015
2.0.0-rc1build371 289 1/11/2016
2.0.0-rc1build366 265 1/11/2016
2.0.0-rc1build288 312 7/4/2015
2.0.0-rc1build287 296 6/19/2015
2.0.0-rc1build286 453 6/8/2015
2.0.0-rc1build285 289 6/4/2015
2.0.0-rc1build284 292 6/3/2015
2.0.0-rc1build283 317 6/1/2015
2.0.0-rc1build282 288 5/29/2015
2.0.0-rc1build281 281 5/27/2015
2.0.0-rc1build280 273 5/27/2015
2.0.0-rc1build279 290 5/21/2015
2.0.0-rc1build278 292 5/16/2015
2.0.0-rc1build277 290 5/15/2015
2.0.0-rc1build276 283 5/21/2015
2.0.0-rc1build275 284 5/16/2015
2.0.0-rc1build274 338 5/15/2015
2.0.0-rc1build273 305 5/15/2015
2.0.0-rc1build272 296 5/14/2015
2.0.0-rc1build271 324 5/14/2015
2.0.0-rc1build270 290 5/13/2015
2.0.0-rc1build269 289 5/14/2015
2.0.0-rc1build268 301 5/12/2015
2.0.0-rc1build267 299 5/10/2015
2.0.0-rc1build266 289 5/7/2015
2.0.0-rc1build265 287 5/6/2015
2.0.0-rc1build264 357 5/5/2015
2.0.0-rc1build263 289 5/1/2015
2.0.0-rc1build262 293 4/30/2015
2.0.0-rc1build261 290 4/29/2015
2.0.0-rc1build260 349 4/28/2015
2.0.0-rc1build259 287 4/21/2015
2.0.0-rc1build258 285 4/29/2015
2.0.0-rc1build255 305 4/21/2015
2.0.0-preview256 310 4/15/2015
2.0.0-preview255 303 4/14/2015
2.0.0-preview254 300 4/14/2015
2.0.0-preview253 303 4/13/2015
2.0.0-preview252 298 4/10/2015
2.0.0-preview251 306 4/7/2015
2.0.0-preview250 296 4/6/2015
2.0.0-preview249 488 4/6/2015
2.0.0-preview248 298 4/7/2015
2.0.0-preview247 307 4/6/2015
2.0.0-preview246 301 4/6/2015
2.0.0-preview245 295 4/3/2015
2.0.0-preview244 299 4/3/2015
2.0.0-preview243 303 4/3/2015
2.0.0-preview242 308 4/2/2015
2.0.0-preview241 294 3/31/2015
2.0.0-preview240 301 3/31/2015
2.0.0-preview239 341 3/30/2015
2.0.0-preview238 310 3/30/2015
2.0.0-preview237 295 3/29/2015
2.0.0-preview236 297 3/28/2015
2.0.0-preview235 311 3/27/2015
2.0.0-preview234 295 3/27/2015
2.0.0-preview233 292 3/26/2015
2.0.0-preview232 295 3/26/2015
2.0.0-preview231 315 3/25/2015
2.0.0-preview230 307 3/25/2015
2.0.0-preview229 309 3/25/2015
2.0.0-preview228 299 3/23/2015
2.0.0-preview227 332 3/23/2015
2.0.0-preview226 307 3/19/2015
2.0.0-preview225 307 3/18/2015
2.0.0-preview224 299 3/18/2015
2.0.0-preview223 317 3/18/2015
2.0.0-preview222 296 3/17/2015
2.0.0-preview221 306 3/15/2015
2.0.0-preview220 290 3/14/2015
2.0.0-preview219 295 3/13/2015
2.0.0-preview218 310 3/11/2015
2.0.0-preview217 302 3/10/2015
2.0.0-preview216 337 3/10/2015
2.0.0-preview215 307 3/10/2015
2.0.0-preview214 314 3/10/2015
2.0.0-preview213 289 3/9/2015
2.0.0-preview212 298 3/6/2015
2.0.0-preview211 306 3/4/2015
2.0.0-preview210 295 3/4/2015
2.0.0-preview209 301 3/4/2015
2.0.0-preview208 311 3/3/2015
2.0.0-preview207 296 3/3/2015
2.0.0-preview206 310 3/3/2015
2.0.0-preview205 299 3/2/2015
2.0.0-preview204 314 3/2/2015
2.0.0-preview203 461 2/26/2015
2.0.0-preview202 311 2/25/2015
2.0.0-preview201 326 2/20/2015
2.0.0-preview200 442 2/20/2015
2.0.0-preview199 340 2/20/2015
2.0.0-preview198 305 2/19/2015
2.0.0-preview197 300 2/19/2015
2.0.0-preview196 306 2/19/2015
2.0.0-preview195 315 2/19/2015
2.0.0-preview194 350 2/18/2015
2.0.0-preview193 316 2/18/2015
2.0.0-preview192 383 2/17/2015
2.0.0-preview191 372 2/17/2015
2.0.0-preview190 400 2/17/2015
2.0.0-preview189 297 2/12/2015
2.0.0-preview188 318 2/11/2015
2.0.0-preview187 409 2/11/2015
2.0.0-preview186 451 2/11/2015
2.0.0-preview185 325 2/10/2015
2.0.0-preview184 308 2/10/2015
2.0.0-preview183 308 2/10/2015
2.0.0-preview182 345 2/9/2015
2.0.0-preview181 313 2/2/2015
2.0.0-preview180 311 2/2/2015
2.0.0-preview179 303 1/31/2015
2.0.0-preview178 313 1/30/2015
2.0.0-preview177 315 1/29/2015
2.0.0-preview176 358 1/24/2015
2.0.0-preview175 309 1/24/2015
2.0.0-preview174 384 1/23/2015
2.0.0-preview173 366 1/18/2015
2.0.0-preview172 317 1/19/2015
2.0.0-preview171 382 1/16/2015
2.0.0-preview170 317 1/16/2015
2.0.0-preview169 332 1/16/2015
2.0.0-preview168 313 1/16/2015
2.0.0-preview167 381 1/16/2015
2.0.0-preview166 308 1/15/2015
2.0.0-preview165 347 1/15/2015
2.0.0-preview164 309 1/15/2015
2.0.0-preview163 352 1/15/2015
2.0.0-preview162 355 1/14/2015
2.0.0-preview161 307 1/14/2015
2.0.0-preview160 298 1/14/2015
2.0.0-preview159 311 1/14/2015
2.0.0-preview158 316 1/14/2015
2.0.0-preview157 310 1/14/2015
2.0.0-preview156 309 1/13/2015
2.0.0-preview155 323 1/13/2015
2.0.0-preview154 375 1/12/2015
2.0.0-preview153 311 1/12/2015
2.0.0-preview152 313 1/9/2015
2.0.0-preview151 311 1/9/2015
2.0.0-preview150 315 1/8/2015
2.0.0-preview148 341 1/8/2015
2.0.0-preview147 314 1/3/2015
2.0.0-preview146 342 1/3/2015
2.0.0-preview145 373 12/30/2014
2.0.0-preview144 338 12/29/2014
2.0.0-preview143 365 12/29/2014
2.0.0-preview142 337 12/23/2014
2.0.0-preview141 329 12/23/2014
2.0.0-preview140 341 12/23/2014
2.0.0-preview139 392 12/20/2014
2.0.0-preview138 313 12/20/2014
2.0.0-preview137 330 12/20/2014
2.0.0-preview136 331 12/20/2014
2.0.0-preview135 309 12/20/2014
2.0.0-preview133 379 12/18/2014
2.0.0-preview132 358 12/15/2014
2.0.0-preview131 335 12/14/2014
2.0.0-preview130 323 12/12/2014
2.0.0-preview129 331 12/12/2014
2.0.0-preview128 318 12/11/2014
2.0.0-preview127 332 12/10/2014
2.0.0-preview126 329 12/10/2014
2.0.0-preview125 320 12/8/2014
2.0.0-preview124 335 12/8/2014
2.0.0-preview123 325 12/7/2014
2.0.0-preview119 440 11/24/2014
2.0.0-preview118 399 11/21/2014
2.0.0-preview116 727 11/13/2014
2.0.0-preview115 560 11/6/2014
2.0.0-preview114 759 11/6/2014
2.0.0-preview113 539 11/5/2014
2.0.0-preview112 545 11/5/2014
2.0.0-preview110 782 11/5/2014
2.0.0-preview109 797 11/4/2014
2.0.0-preview108 649 10/31/2014
2.0.0-preview107 880 10/31/2014
2.0.0-preview105 954 10/31/2014
2.0.0-preview104 321 10/29/2014
2.0.0-preview103 316 10/27/2014
2.0.0-preview102 328 10/27/2014
2.0.0-preview101 325 10/24/2014
2.0.0-beta258 312 4/21/2015
2.0.0-beta254 356 4/20/2015
1.4.1 3,419 10/9/2014
1.4.0 709 9/10/2014
1.3.1 499 8/18/2014
1.3.0 566 7/16/2014
1.2.2 594 7/2/2014
1.2.1 374 6/30/2014
1.2.0 756 1/9/2014
1.1.1 420 12/26/2013
1.1.0 379 12/26/2013
1.0.11 411 12/24/2013