DryIoc 4.0.5

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

Requires NuGet 3.3.0 or higher.

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

Release Notes

## v4.0.5 Release notes

- fixed: #133 Validate method call hangs
- fixed: #134 with finding is th property is static in VB

## 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.5 206 6/8/2019
4.0.5-preview-01 60 6/7/2019
4.0.4 1,178 5/1/2019
4.0.3 566 4/10/2019
4.0.2 340 3/30/2019
4.0.1 95 3/28/2019
4.0.0 706 3/4/2019
4.0.0-preview-02 114 2/22/2019
4.0.0-preview-01 1,668 12/1/2018
3.1.0-preview-07 160 11/20/2018
3.0.2 10,127 7/11/2018
3.0.1 244 7/7/2018
3.0.0 564 6/24/2018
3.0.0-preview-12 237 6/6/2018
3.0.0-preview-11 468 3/17/2018
3.0.0-preview-10 224 3/13/2018
3.0.0-preview-09 1,699 2/21/2018
3.0.0-preview-08 226 2/12/2018
3.0.0-preview-07 227 2/9/2018
3.0.0-preview-06 238 2/8/2018
3.0.0-preview-05 240 2/5/2018
3.0.0-preview-04 231 2/1/2018
3.0.0-preview-03 330 12/3/2017
3.0.0-preview-02 722 11/14/2017
3.0.0-preview-01 277 10/1/2017
2.12.10 6,049 4/11/2018
2.12.9 445 4/7/2018
2.12.8 1,287 3/13/2018
2.12.7 3,305 1/19/2018
2.12.6 1,195 12/21/2017
2.12.5 5,401 10/30/2017
2.12.4 502 10/17/2017
2.12.3 1,989 10/2/2017
2.12.2 874 9/17/2017
2.12.1 397 9/9/2017
2.12.0 1,435 9/1/2017
2.12.0-preview-01 227 8/29/2017
2.11.6 3,963 7/18/2017
2.11.5 374 7/12/2017
2.11.4 646 6/28/2017
2.11.3 795 6/1/2017
2.11.2 247 6/1/2017
2.11.1 310 5/31/2017
2.11.0 277 5/30/2017
2.11.0-preview-02 431 3/15/2017
2.11.0-preview-01 251 3/10/2017
2.10.7 2,160 5/3/2017
2.10.6 32,769 4/20/2017
2.10.5 662 4/4/2017
2.10.4 422 3/28/2017
2.10.3 413 3/25/2017
2.10.2 3,635 3/14/2017
2.10.1 1,783 2/18/2017
2.10.0 5,088 2/1/2017
2.9.7 1,613 1/12/2017
2.9.6 975 12/30/2016
2.9.5 344 12/26/2016
2.9.4 757 12/10/2016
2.9.3 408 12/8/2016
2.9.2 445 12/3/2016
2.9.1 1,668 11/19/2016
2.9.0 339 11/17/2016
2.8.5 903 11/2/2016
2.8.4 450 10/28/2016
2.8.3 5,538 10/20/2016
2.8.2 526 10/20/2016
2.8.1 312 10/19/2016
2.8.0 290 10/18/2016
2.8.0-preview-01 264 10/13/2016
2.7.1 1,382 9/1/2016
2.7.0 762 8/19/2016
2.6.4 959 7/29/2016
2.6.3 542 7/9/2016
2.6.2 2,982 6/13/2016
2.6.0 392 6/10/2016
2.5.1 954 6/7/2016
2.5.0 1,989 5/24/2016
2.4.3 805 5/7/2016
2.4.2 698 4/26/2016
2.4.1 447 4/16/2016
2.4.0 565 4/14/2016
2.3.0 1,156 3/30/2016
2.2.2 1,889 3/10/2016
2.2.1 344 3/8/2016
2.2.0 626 2/26/2016
2.1.3 1,579 1/17/2016
2.1.2 387 1/15/2016
2.1.1 633 1/4/2016
2.1.0 792 12/4/2015
2.0.2 600 12/1/2015
2.0.1 359 11/27/2015
2.0.0 1,202 11/19/2015
2.0.0-rc4build353 311 11/18/2015
2.0.0-rc4build352 295 11/17/2015
2.0.0-rc4build351 328 11/17/2015
2.0.0-rc4build350 295 11/17/2015
2.0.0-rc4build349 321 11/12/2015
2.0.0-rc4build348 317 11/12/2015
2.0.0-rc4build347 297 11/12/2015
2.0.0-rc4build346 279 11/12/2015
2.0.0-rc4build345 279 11/12/2015
2.0.0-rc4build344 312 11/7/2015
2.0.0-rc4build343 302 11/5/2015
2.0.0-rc4build342 376 11/1/2015
2.0.0-rc4build341 302 10/29/2015
2.0.0-rc4build340 281 11/12/2015
2.0.0-rc4build339 284 11/7/2015
2.0.0-rc4build338 291 11/5/2015
2.0.0-rc4build337 289 11/1/2015
2.0.0-rc4build336 293 10/29/2015
2.0.0-rc3build340 288 10/26/2015
2.0.0-rc3build339 299 10/26/2015
2.0.0-rc3build338 300 10/23/2015
2.0.0-rc3build337 311 10/20/2015
2.0.0-rc3build336 322 10/19/2015
2.0.0-rc3build335 311 10/12/2015
2.0.0-rc3build334 291 10/10/2015
2.0.0-rc3build333 304 10/6/2015
2.0.0-rc3build332 304 10/6/2015
2.0.0-rc3build331 293 10/1/2015
2.0.0-rc3build330 290 10/1/2015
2.0.0-rc3build329 301 9/30/2015
2.0.0-rc3build328 358 9/26/2015
2.0.0-rc3build327 298 9/25/2015
2.0.0-rc3build326 313 9/25/2015
2.0.0-rc3build325 301 9/25/2015
2.0.0-rc3build324 338 9/11/2015
2.0.0-rc3build323 326 9/11/2015
2.0.0-rc3build322 335 9/11/2015
2.0.0-rc3build321 304 9/11/2015
2.0.0-rc3build320 292 9/11/2015
2.0.0-rc3build319 325 9/8/2015
2.0.0-rc3build318 313 9/6/2015
2.0.0-rc3build317 320 9/3/2015
2.0.0-rc3build316 332 9/2/2015
2.0.0-rc3build315 324 8/31/2015
2.0.0-rc3build314 311 9/8/2015
2.0.0-rc3build313 310 8/29/2015
2.0.0-rc3build312 329 8/23/2015
2.0.0-rc3build311 313 8/21/2015
2.0.0-rc3build310 325 8/18/2015
2.0.0-rc3build309 299 8/12/2015
2.0.0-rc3build308 306 8/6/2015
2.0.0-rc3build307 339 8/23/2015
2.0.0-rc3build306 301 8/6/2015
2.0.0-rc3build304 288 8/4/2015
2.0.0-rc3build303 279 8/6/2015
2.0.0-rc3build302 313 8/3/2015
2.0.0-rc3build301 350 7/31/2015
2.0.0-rc3build300 485 7/28/2015
2.0.0-rc3build299 288 7/28/2015
2.0.0-rc3build298 293 7/28/2015
2.0.0-rc3build297 282 7/31/2015
2.0.0-rc3build296 288 7/28/2015
2.0.0-rc2build297 299 7/26/2015
2.0.0-rc2build296 282 7/26/2015
2.0.0-rc2build295 296 7/24/2015
2.0.0-rc2build294 302 7/24/2015
2.0.0-rc2build293 295 7/26/2015
2.0.0-rc2build292 341 7/21/2015
2.0.0-rc2build291 287 7/24/2015
2.0.0-rc2build289 346 7/21/2015
2.0.0-rc1build371 302 1/11/2016
2.0.0-rc1build366 278 1/11/2016
2.0.0-rc1build288 325 7/4/2015
2.0.0-rc1build287 309 6/19/2015
2.0.0-rc1build286 466 6/8/2015
2.0.0-rc1build285 302 6/4/2015
2.0.0-rc1build284 305 6/3/2015
2.0.0-rc1build283 330 6/1/2015
2.0.0-rc1build282 301 5/29/2015
2.0.0-rc1build281 294 5/27/2015
2.0.0-rc1build280 286 5/27/2015
2.0.0-rc1build279 303 5/21/2015
2.0.0-rc1build278 305 5/16/2015
2.0.0-rc1build277 303 5/15/2015
2.0.0-rc1build276 293 5/21/2015
2.0.0-rc1build275 294 5/16/2015
2.0.0-rc1build274 351 5/15/2015
2.0.0-rc1build273 318 5/15/2015
2.0.0-rc1build272 306 5/14/2015
2.0.0-rc1build271 337 5/14/2015
2.0.0-rc1build270 303 5/13/2015
2.0.0-rc1build269 302 5/14/2015
2.0.0-rc1build268 311 5/12/2015
2.0.0-rc1build267 309 5/10/2015
2.0.0-rc1build266 302 5/7/2015
2.0.0-rc1build265 300 5/6/2015
2.0.0-rc1build264 370 5/5/2015
2.0.0-rc1build263 299 5/1/2015
2.0.0-rc1build262 306 4/30/2015
2.0.0-rc1build261 303 4/29/2015
2.0.0-rc1build260 362 4/28/2015
2.0.0-rc1build259 300 4/21/2015
2.0.0-rc1build258 298 4/29/2015
2.0.0-rc1build255 318 4/21/2015
2.0.0-preview256 328 4/15/2015
2.0.0-preview255 321 4/14/2015
2.0.0-preview254 318 4/14/2015
2.0.0-preview253 318 4/13/2015
2.0.0-preview252 310 4/10/2015
2.0.0-preview251 320 4/7/2015
2.0.0-preview250 314 4/6/2015
2.0.0-preview249 506 4/6/2015
2.0.0-preview248 315 4/7/2015
2.0.0-preview247 323 4/6/2015
2.0.0-preview246 319 4/6/2015
2.0.0-preview245 313 4/3/2015
2.0.0-preview244 317 4/3/2015
2.0.0-preview243 320 4/3/2015
2.0.0-preview242 326 4/2/2015
2.0.0-preview241 312 3/31/2015
2.0.0-preview240 319 3/31/2015
2.0.0-preview239 358 3/30/2015
2.0.0-preview238 322 3/30/2015
2.0.0-preview237 313 3/29/2015
2.0.0-preview236 315 3/28/2015
2.0.0-preview235 325 3/27/2015
2.0.0-preview234 309 3/27/2015
2.0.0-preview233 309 3/26/2015
2.0.0-preview232 310 3/26/2015
2.0.0-preview231 331 3/25/2015
2.0.0-preview230 325 3/25/2015
2.0.0-preview229 326 3/25/2015
2.0.0-preview228 316 3/23/2015
2.0.0-preview227 347 3/23/2015
2.0.0-preview226 322 3/19/2015
2.0.0-preview225 321 3/18/2015
2.0.0-preview224 317 3/18/2015
2.0.0-preview223 331 3/18/2015
2.0.0-preview222 313 3/17/2015
2.0.0-preview221 324 3/15/2015
2.0.0-preview220 308 3/14/2015
2.0.0-preview219 310 3/13/2015
2.0.0-preview218 325 3/11/2015
2.0.0-preview217 317 3/10/2015
2.0.0-preview216 354 3/10/2015
2.0.0-preview215 321 3/10/2015
2.0.0-preview214 329 3/10/2015
2.0.0-preview213 304 3/9/2015
2.0.0-preview212 313 3/6/2015
2.0.0-preview211 320 3/4/2015
2.0.0-preview210 312 3/4/2015
2.0.0-preview209 319 3/4/2015
2.0.0-preview208 322 3/3/2015
2.0.0-preview207 314 3/3/2015
2.0.0-preview206 328 3/3/2015
2.0.0-preview205 318 3/2/2015
2.0.0-preview204 331 3/2/2015
2.0.0-preview203 478 2/26/2015
2.0.0-preview202 329 2/25/2015
2.0.0-preview201 343 2/20/2015
2.0.0-preview200 453 2/20/2015
2.0.0-preview199 351 2/20/2015
2.0.0-preview198 321 2/19/2015
2.0.0-preview197 318 2/19/2015
2.0.0-preview196 323 2/19/2015
2.0.0-preview195 332 2/19/2015
2.0.0-preview194 368 2/18/2015
2.0.0-preview193 334 2/18/2015
2.0.0-preview192 400 2/17/2015
2.0.0-preview191 390 2/17/2015
2.0.0-preview190 415 2/17/2015
2.0.0-preview189 313 2/12/2015
2.0.0-preview188 335 2/11/2015
2.0.0-preview187 427 2/11/2015
2.0.0-preview186 469 2/11/2015
2.0.0-preview185 342 2/10/2015
2.0.0-preview184 326 2/10/2015
2.0.0-preview183 325 2/10/2015
2.0.0-preview182 363 2/9/2015
2.0.0-preview181 332 2/2/2015
2.0.0-preview180 329 2/2/2015
2.0.0-preview179 322 1/31/2015
2.0.0-preview178 329 1/30/2015
2.0.0-preview177 333 1/29/2015
2.0.0-preview176 376 1/24/2015
2.0.0-preview175 327 1/24/2015
2.0.0-preview174 400 1/23/2015
2.0.0-preview173 379 1/18/2015
2.0.0-preview172 332 1/19/2015
2.0.0-preview171 401 1/16/2015
2.0.0-preview170 332 1/16/2015
2.0.0-preview169 350 1/16/2015
2.0.0-preview168 332 1/16/2015
2.0.0-preview167 397 1/16/2015
2.0.0-preview166 323 1/15/2015
2.0.0-preview165 366 1/15/2015
2.0.0-preview164 328 1/15/2015
2.0.0-preview163 371 1/15/2015
2.0.0-preview162 371 1/14/2015
2.0.0-preview161 321 1/14/2015
2.0.0-preview160 316 1/14/2015
2.0.0-preview159 329 1/14/2015
2.0.0-preview158 335 1/14/2015
2.0.0-preview157 329 1/14/2015
2.0.0-preview156 328 1/13/2015
2.0.0-preview155 339 1/13/2015
2.0.0-preview154 393 1/12/2015
2.0.0-preview153 330 1/12/2015
2.0.0-preview152 332 1/9/2015
2.0.0-preview151 330 1/9/2015
2.0.0-preview150 334 1/8/2015
2.0.0-preview148 360 1/8/2015
2.0.0-preview147 329 1/3/2015
2.0.0-preview146 361 1/3/2015
2.0.0-preview145 389 12/30/2014
2.0.0-preview144 356 12/29/2014
2.0.0-preview143 384 12/29/2014
2.0.0-preview142 356 12/23/2014
2.0.0-preview141 345 12/23/2014
2.0.0-preview140 360 12/23/2014
2.0.0-preview139 408 12/20/2014
2.0.0-preview138 332 12/20/2014
2.0.0-preview137 345 12/20/2014
2.0.0-preview136 349 12/20/2014
2.0.0-preview135 329 12/20/2014
2.0.0-preview133 398 12/18/2014
2.0.0-preview132 373 12/15/2014
2.0.0-preview131 354 12/14/2014
2.0.0-preview130 342 12/12/2014
2.0.0-preview129 350 12/12/2014
2.0.0-preview128 335 12/11/2014
2.0.0-preview127 350 12/10/2014
2.0.0-preview126 348 12/10/2014
2.0.0-preview125 337 12/8/2014
2.0.0-preview124 354 12/8/2014
2.0.0-preview123 343 12/7/2014
2.0.0-preview119 456 11/24/2014
2.0.0-preview118 418 11/21/2014
2.0.0-preview116 746 11/13/2014
2.0.0-preview115 579 11/6/2014
2.0.0-preview114 777 11/6/2014
2.0.0-preview113 558 11/5/2014
2.0.0-preview112 563 11/5/2014
2.0.0-preview110 801 11/5/2014
2.0.0-preview109 813 11/4/2014
2.0.0-preview108 665 10/31/2014
2.0.0-preview107 893 10/31/2014
2.0.0-preview105 970 10/31/2014
2.0.0-preview104 340 10/29/2014
2.0.0-preview103 332 10/27/2014
2.0.0-preview102 347 10/27/2014
2.0.0-preview101 344 10/24/2014
2.0.0-beta258 324 4/21/2015
2.0.0-beta254 369 4/20/2015
1.4.1 3,436 10/9/2014
1.4.0 725 9/10/2014
1.3.1 514 8/18/2014
1.3.0 581 7/16/2014
1.2.2 611 7/2/2014
1.2.1 392 6/30/2014
1.2.0 773 1/9/2014
1.1.1 437 12/26/2013
1.1.0 391 12/26/2013
1.0.11 427 12/24/2013