DryIoc.dll 4.0.0

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

Release Notes

## 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 2,631 5/1/2019
4.0.3 2,695 4/10/2019
4.0.2 2,330 3/30/2019
4.0.1 7,365 3/28/2019
4.0.0 10,477 3/4/2019
4.0.0-preview-02 196 2/22/2019
4.0.0-preview-01 2,687 12/1/2018
3.1.0-preview-07 1,980 11/20/2018
3.1.0-preview-06 568 11/7/2018
3.1.0-preview-05 213 10/12/2018
3.1.0-preview-04 342 10/6/2018
3.1.0-preview-03 148 10/5/2018
3.1.0-preview-02 133 10/4/2018
3.1.0-preview-01 176 10/3/2018
3.0.2 148,629 7/11/2018
3.0.1 594 7/7/2018
3.0.0 862 6/24/2018
3.0.0-preview-12 437 6/6/2018
3.0.0-preview-11 1,419 3/17/2018
3.0.0-preview-10 299 3/13/2018
3.0.0-preview-09 357 2/21/2018
3.0.0-preview-08 260 2/12/2018
3.0.0-preview-07 311 2/9/2018
3.0.0-preview-06 235 2/8/2018
3.0.0-preview-05 232 2/5/2018
3.0.0-preview-04 246 2/1/2018
3.0.0-preview-03 1,139 12/3/2017
3.0.0-preview-02 251 11/14/2017
3.0.0-preview-01 589 10/1/2017
2.12.10 47,841 4/11/2018
2.12.8 15,779 3/13/2018
2.12.7 14,551 1/19/2018
2.12.6 55,043 12/21/2017
2.12.5 18,162 10/30/2017
2.12.4 6,344 10/17/2017
2.12.3 3,656 10/2/2017
2.12.2 15,375 9/17/2017
2.12.1 16,531 9/9/2017
2.12.0 1,409 9/1/2017
2.12.0-preview-01 280 8/29/2017
2.11.6 8,380 7/18/2017
2.11.5 1,641 7/12/2017
2.11.4 6,219 6/28/2017
2.11.3 4,705 6/1/2017
2.11.2 254 6/1/2017
2.11.1 474 5/31/2017
2.11.0 363 5/30/2017
2.11.0-preview-02 484 3/15/2017
2.11.0-preview-01 264 3/10/2017
2.10.7 6,136 5/3/2017
2.10.6 33,383 4/20/2017
2.10.4 2,622 3/28/2017
2.10.3 404 3/25/2017
2.10.2 4,217 3/14/2017
2.10.1 16,928 2/18/2017
2.10.0 6,210 2/1/2017
2.9.7 4,488 1/12/2017
2.9.6 749 12/30/2016
2.9.5 506 12/26/2016
2.9.4 1,596 12/10/2016
2.9.3 503 12/8/2016
2.9.2 432 12/3/2016
2.9.1 1,167 11/19/2016
2.9.0 748 11/17/2016
2.8.5 1,016 11/2/2016
2.8.4 488 10/28/2016
2.8.3 4,161 10/20/2016
2.8.2 533 10/20/2016
2.8.1 288 10/19/2016
2.8.0 280 10/18/2016
2.8.0-preview-01 252 10/13/2016
2.7.1 15,388 9/1/2016
2.7.0 3,162 8/19/2016
2.6.4 2,543 7/29/2016
2.6.3 2,428 7/9/2016
2.6.3-netcore-rc2 591 7/9/2016
2.6.2 2,283 6/13/2016
2.6.2-netcore-rc2 439 6/13/2016
2.6.1-netcore-rc2 256 6/10/2016
2.6.0 470 6/10/2016
2.5.1 376 6/7/2016
2.5.0 1,086 5/24/2016
2.4.3 1,239 5/7/2016
2.4.2 514 4/26/2016
2.4.1 1,690 4/16/2016
2.4.0 381 4/14/2016
2.3.0 1,576 3/30/2016
2.2.2 3,898 3/10/2016
2.2.1 323 3/8/2016
2.2.0 723 2/26/2016
2.1.3 996 1/17/2016
2.1.2 403 1/15/2016
2.1.1 570 1/4/2016
2.1.0 1,196 12/4/2015
2.0.2 516 12/1/2015
2.0.1 413 11/27/2015
2.0.0 1,650 11/19/2015
2.0.0-rc4build353 342 11/18/2015
2.0.0-rc4build352 322 11/17/2015
2.0.0-rc4build351 330 11/17/2015
2.0.0-rc4build350 358 11/17/2015
2.0.0-rc4build349 344 11/12/2015
2.0.0-rc4build348 315 11/12/2015
2.0.0-rc4build347 328 11/12/2015
2.0.0-rc4build346 348 11/12/2015
2.0.0-rc4build345 316 11/12/2015
2.0.0-rc4build344 333 11/7/2015
2.0.0-rc4build343 349 11/5/2015
2.0.0-rc4build342 638 11/1/2015
2.0.0-rc4build341 327 10/29/2015
2.0.0-rc4build340 342 11/12/2015
2.0.0-rc4build339 315 11/7/2015
2.0.0-rc4build338 330 11/5/2015
2.0.0-rc4build337 319 11/1/2015
2.0.0-rc4build336 320 10/29/2015
2.0.0-rc3build340 294 10/26/2015
2.0.0-rc3build339 298 10/26/2015
2.0.0-rc3build338 273 10/23/2015
2.0.0-rc3build337 338 10/20/2015
2.0.0-rc3build336 287 10/19/2015
2.0.0-rc3build335 387 10/12/2015
2.0.0-rc3build334 280 10/10/2015
2.0.0-rc3build333 331 10/6/2015
2.0.0-rc3build332 314 10/6/2015
2.0.0-rc3build331 349 10/1/2015
2.0.0-rc3build330 278 10/1/2015
2.0.0-rc3build329 290 9/30/2015
2.0.0-rc3build328 334 9/26/2015
2.0.0-rc3build327 297 9/25/2015
2.0.0-rc3build326 280 9/25/2015
2.0.0-rc3build325 292 9/25/2015
2.0.0-rc3build324 370 9/11/2015
2.0.0-rc3build323 338 9/11/2015
2.0.0-rc3build322 300 9/11/2015
2.0.0-rc3build321 290 9/11/2015
2.0.0-rc3build320 268 9/11/2015
2.0.0-rc3build319 329 9/8/2015
2.0.0-rc3build318 326 9/6/2015
2.0.0-rc3build317 304 9/3/2015
2.0.0-rc3build316 377 9/2/2015
2.0.0-rc3build315 308 8/31/2015
2.0.0-rc3build314 324 9/8/2015
2.0.0-rc3build313 293 8/29/2015
2.0.0-rc3build312 328 8/23/2015
2.0.0-rc3build311 315 8/21/2015
2.0.0-rc3build310 340 8/18/2015
2.0.0-rc3build309 305 8/12/2015
2.0.0-rc3build308 270 8/6/2015
2.0.0-rc3build307 289 8/23/2015
2.0.0-rc3build306 266 8/6/2015
2.0.0-rc3build304 336 8/4/2015
2.0.0-rc3build303 267 8/6/2015
2.0.0-rc3build302 273 8/3/2015
2.0.0-rc3build301 296 7/31/2015
2.0.0-rc3build300 400 7/28/2015
2.0.0-rc3build299 307 7/28/2015
2.0.0-rc3build298 279 7/28/2015
2.0.0-rc3build297 266 7/31/2015
2.0.0-rc2build297 312 7/26/2015
2.0.0-rc2build295 446 7/24/2015
2.0.0-rc2build294 292 7/24/2015
2.0.0-rc2build293 296 7/26/2015
2.0.0-rc2build292 300 7/21/2015
2.0.0-rc2build291 297 7/24/2015
2.0.0-rc2build289 277 7/21/2015
2.0.0-rc1build371 252 1/11/2016
2.0.0-rc1build366 259 1/11/2016
2.0.0-rc1build288 317 7/4/2015
2.0.0-rc1build287 282 6/19/2015
2.0.0-rc1build286 283 6/8/2015
2.0.0-rc1build285 278 6/4/2015
2.0.0-rc1build284 314 6/3/2015
2.0.0-rc1build283 413 6/1/2015
2.0.0-rc1build282 287 5/29/2015
2.0.0-rc1build281 278 5/27/2015
2.0.0-rc1build280 348 5/27/2015
2.0.0-rc1build279 313 5/21/2015
2.0.0-rc1build278 340 5/16/2015
2.0.0-rc1build277 343 5/15/2015
2.0.0-rc1build276 417 5/21/2015
2.0.0-rc1build275 287 5/16/2015
2.0.0-rc1build274 335 5/15/2015
2.0.0-rc1build273 296 5/15/2015
2.0.0-rc1build272 317 5/14/2015
2.0.0-rc1build271 292 5/14/2015
2.0.0-rc1build270 285 5/13/2015
2.0.0-rc1build269 289 5/14/2015
2.0.0-rc1build268 301 5/12/2015
2.0.0-rc1build267 297 5/10/2015
2.0.0-rc1build266 295 5/7/2015
2.0.0-rc1build265 285 5/6/2015
2.0.0-rc1build264 288 5/5/2015
2.0.0-rc1build263 299 5/1/2015
2.0.0-rc1build262 290 4/30/2015
2.0.0-rc1build261 274 4/29/2015
2.0.0-rc1build260 288 4/28/2015
2.0.0-rc1build259 298 4/21/2015
2.0.0-rc1build258 284 4/29/2015
2.0.0-rc1build255 278 4/21/2015
2.0.0-preview256 386 4/15/2015
2.0.0-preview255 298 4/14/2015
2.0.0-preview254 295 4/14/2015
2.0.0-preview253 329 4/13/2015
2.0.0-preview252 341 4/10/2015
2.0.0-preview251 368 4/7/2015
2.0.0-preview250 302 4/6/2015
2.0.0-preview249 340 4/6/2015
2.0.0-preview248 297 4/7/2015
2.0.0-preview247 306 4/6/2015
2.0.0-preview246 355 4/6/2015
2.0.0-preview245 294 4/3/2015
2.0.0-preview244 320 4/3/2015
2.0.0-preview243 294 4/3/2015
2.0.0-preview242 296 4/2/2015
2.0.0-preview241 307 3/31/2015
2.0.0-preview240 290 3/31/2015
2.0.0-preview239 284 3/30/2015
2.0.0-preview238 300 3/30/2015
2.0.0-preview237 312 3/29/2015
2.0.0-preview236 293 3/28/2015
2.0.0-preview235 311 3/27/2015
2.0.0-preview234 311 3/27/2015
2.0.0-preview233 303 3/26/2015
2.0.0-preview232 306 3/26/2015
2.0.0-preview231 313 3/25/2015
2.0.0-preview230 332 3/25/2015
2.0.0-preview229 297 3/25/2015
2.0.0-preview228 324 3/23/2015
2.0.0-preview227 310 3/23/2015
2.0.0-preview226 306 3/19/2015
2.0.0-preview225 331 3/18/2015
2.0.0-preview224 330 3/18/2015
2.0.0-preview223 327 3/18/2015
2.0.0-preview222 301 3/17/2015
2.0.0-preview221 299 3/15/2015
2.0.0-preview220 294 3/14/2015
2.0.0-preview219 288 3/13/2015
2.0.0-preview218 343 3/11/2015
2.0.0-preview217 291 3/10/2015
2.0.0-preview216 307 3/10/2015
2.0.0-preview215 343 3/10/2015
2.0.0-preview214 292 3/10/2015
2.0.0-preview213 298 3/9/2015
2.0.0-preview212 317 3/6/2015
2.0.0-preview211 296 3/4/2015
2.0.0-preview210 348 3/4/2015
2.0.0-preview209 299 3/4/2015
2.0.0-preview208 298 3/3/2015
2.0.0-preview207 290 3/3/2015
2.0.0-preview206 295 3/3/2015
2.0.0-preview205 289 3/2/2015
2.0.0-preview204 301 3/2/2015
2.0.0-preview203 308 2/26/2015
2.0.0-preview202 328 2/25/2015
2.0.0-preview201 304 2/20/2015
2.0.0-preview200 407 2/20/2015
2.0.0-preview199 316 2/20/2015
2.0.0-preview198 342 2/19/2015
2.0.0-preview197 299 2/19/2015
2.0.0-preview196 322 2/19/2015
2.0.0-preview195 304 2/19/2015
2.0.0-preview194 365 2/18/2015
2.0.0-preview193 419 2/18/2015
2.0.0-preview192 363 2/17/2015
2.0.0-preview191 401 2/17/2015
2.0.0-preview190 303 2/17/2015
2.0.0-preview189 332 2/12/2015
2.0.0-preview188 407 2/11/2015
2.0.0-preview187 424 2/11/2015
2.0.0-preview186 331 2/11/2015
2.0.0-preview185 323 2/10/2015
2.0.0-preview184 365 2/10/2015
2.0.0-preview183 396 2/10/2015
2.0.0-preview182 306 2/9/2015
2.0.0-preview181 331 2/2/2015
2.0.0-preview180 324 2/2/2015
2.0.0-preview179 300 1/31/2015
2.0.0-preview178 346 1/30/2015
2.0.0-preview177 354 1/29/2015
2.0.0-preview176 312 1/24/2015
2.0.0-preview175 382 1/24/2015
2.0.0-preview174 363 1/23/2015
2.0.0-preview173 350 1/18/2015
2.0.0-preview172 347 1/19/2015
2.0.0-preview171 337 1/16/2015
2.0.0-preview170 378 1/16/2015
2.0.0-preview169 325 1/16/2015
2.0.0-preview168 304 1/16/2015
2.0.0-preview167 307 1/16/2015
2.0.0-preview166 392 1/15/2015
2.0.0-preview165 389 1/15/2015
2.0.0-preview164 330 1/15/2015
2.0.0-preview163 316 1/15/2015
2.0.0-preview162 344 1/14/2015
2.0.0-preview161 365 1/14/2015
2.0.0-preview160 308 1/14/2015
2.0.0-preview159 385 1/14/2015
2.0.0-preview158 331 1/14/2015
2.0.0-preview157 349 1/14/2015
2.0.0-preview156 337 1/13/2015
2.0.0-preview155 361 1/13/2015
2.0.0-preview154 313 1/12/2015
2.0.0-preview153 320 1/12/2015
2.0.0-preview152 316 1/9/2015
2.0.0-preview151 303 1/9/2015
2.0.0-preview150 309 1/8/2015
2.0.0-preview148 311 1/8/2015
2.0.0-preview147 330 1/3/2015
2.0.0-preview146 311 1/3/2015
2.0.0-preview145 350 12/30/2014
2.0.0-preview144 360 12/29/2014
2.0.0-preview143 370 12/29/2014
2.0.0-preview142 329 12/23/2014
2.0.0-preview141 348 12/23/2014
2.0.0-preview140 323 12/23/2014
2.0.0-preview139 344 12/20/2014
2.0.0-preview138 313 12/20/2014
2.0.0-preview137 311 12/20/2014
2.0.0-preview136 324 12/20/2014
2.0.0-preview135 305 12/20/2014
2.0.0-preview133 312 12/18/2014
2.0.0-preview132 317 12/15/2014
2.0.0-preview131 317 12/14/2014
2.0.0-preview130 382 12/12/2014
2.0.0-preview129 317 12/12/2014
2.0.0-preview128 366 12/11/2014
2.0.0-preview127 320 12/10/2014
2.0.0-preview126 317 12/10/2014
2.0.0-preview125 336 12/8/2014
2.0.0-preview124 316 12/8/2014
2.0.0-preview123 379 12/7/2014
2.0.0-preview119 381 11/24/2014
2.0.0-preview118 445 11/21/2014
2.0.0-preview116 905 11/13/2014
2.0.0-preview115 527 11/6/2014
2.0.0-preview114 739 11/6/2014
2.0.0-preview113 529 11/5/2014
2.0.0-preview112 528 11/5/2014
2.0.0-preview110 781 11/5/2014
2.0.0-preview109 859 11/4/2014
2.0.0-preview108 675 10/31/2014
2.0.0-preview107 920 10/31/2014
2.0.0-preview105 930 10/31/2014
2.0.0-preview104 321 10/29/2014
2.0.0-preview103 317 10/27/2014
2.0.0-preview102 371 10/27/2014
2.0.0-preview101 330 10/24/2014
2.0.0-beta258 302 4/21/2015
2.0.0-beta254 345 4/20/2015
1.4.1 1,859 10/9/2014
1.4.0 623 9/10/2014
1.3.1 443 8/18/2014
1.3.0 465 7/16/2014
1.2.2 469 7/2/2014
1.2.1 350 6/30/2014
1.2.0 549 1/9/2014
1.1.1 437 12/26/2013
1.1.0 382 12/26/2013
1.0.11 387 12/24/2013