DryIoc 4.1.0-preview-03

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

This is a prerelease version of DryIoc.

Requires NuGet 3.3.0 or higher.

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

Release Notes

## v4.1.0

### Briefly:

- Better memory and performance for the real-world applications - big object graphs and the Unit-of-work scenarios
- FEC V3.0 optimized for nested lambda invocation (scoped services in DryIoc) and consuming less memory
- Rules.WithUseInterpretation to work iOS
- Streamlined ambient ScopeContext scope disposal, ensuring more predictable AsyncExecutionFlowScopeContext, ThreadScopeContext behavior

### Bug fixes:

- 151 Resolve problem with ThreadScopeContext in version 4.0.*


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

Showing the top 3 GitHub repositories that depend on DryIoc:

Repository Stars
jbogard/MediatR
Simple, unambitious mediator implementation in .NET
dotnetcore/AspectCore-Framework
AspectCore is an AOP-based cross platform framework for .NET Standard.
seesharper/LightInject
An ultra lightweight IoC container

Version History

Version Downloads Last updated
4.1.0-preview-03 37 10/3/2019
4.1.0-preview-02 164 8/25/2019
4.1.0-preview-01 6,035 8/21/2019
4.0.7 2,129 9/4/2019
4.0.6 385 8/29/2019
4.0.5 14,887 6/8/2019
4.0.5-preview-01 6,074 6/7/2019
4.0.4 7,789 5/1/2019
4.0.3 6,642 4/10/2019
4.0.2 6,392 3/30/2019
4.0.1 6,103 3/28/2019
4.0.0 6,904 3/4/2019
4.0.0-preview-02 6,130 2/22/2019
4.0.0-preview-01 8,526 12/1/2018
3.1.0-preview-07 6,175 11/20/2018
3.0.2 20,534 7/11/2018
3.0.1 6,265 7/7/2018
3.0.0 6,593 6/24/2018
3.0.0-preview-12 6,259 6/6/2018
3.0.0-preview-11 6,500 3/17/2018
3.0.0-preview-10 6,260 3/13/2018
3.0.0-preview-09 7,742 2/21/2018
3.0.0-preview-08 6,250 2/12/2018
3.0.0-preview-07 6,270 2/9/2018
3.0.0-preview-06 6,264 2/8/2018
3.0.0-preview-05 6,257 2/5/2018
3.0.0-preview-04 6,260 2/1/2018
3.0.0-preview-03 6,355 12/3/2017
3.0.0-preview-02 6,741 11/14/2017
3.0.0-preview-01 6,289 10/1/2017
2.12.10 12,832 4/11/2018
2.12.9 6,498 4/7/2018
2.12.8 7,331 3/13/2018
2.12.7 9,678 1/19/2018
2.12.6 7,231 12/21/2017
2.12.5 12,924 10/30/2017
2.12.4 6,523 10/17/2017
2.12.3 8,016 10/2/2017
2.12.2 6,917 9/17/2017
2.12.1 6,422 9/9/2017
2.12.0 7,521 9/1/2017
2.12.0-preview-01 6,242 8/29/2017
2.11.6 10,020 7/18/2017
2.11.5 6,403 7/12/2017
2.11.4 6,732 6/28/2017
2.11.3 6,824 6/1/2017
2.11.2 6,275 6/1/2017
2.11.1 6,342 5/31/2017
2.11.0 6,291 5/30/2017
2.11.0-preview-02 6,461 3/15/2017
2.11.0-preview-01 6,272 3/10/2017
2.10.7 8,343 5/3/2017
2.10.6 40,551 4/20/2017
2.10.5 6,710 4/4/2017
2.10.4 6,447 3/28/2017
2.10.3 6,437 3/25/2017
2.10.2 9,845 3/14/2017
2.10.1 7,817 2/18/2017
2.10.0 11,238 2/1/2017
2.9.7 7,658 1/12/2017
2.9.6 7,011 12/30/2016
2.9.5 6,362 12/26/2016
2.9.4 6,788 12/10/2016
2.9.3 6,436 12/8/2016
2.9.2 6,469 12/3/2016
2.9.1 7,739 11/19/2016
2.9.0 6,361 11/17/2016
2.8.5 6,948 11/2/2016
2.8.4 6,474 10/28/2016
2.8.3 12,025 10/20/2016
2.8.2 6,565 10/20/2016
2.8.1 6,344 10/19/2016
2.8.0 6,313 10/18/2016
2.8.0-preview-01 6,298 10/13/2016
2.7.1 7,407 9/1/2016
2.7.0 6,789 8/19/2016
2.6.4 6,998 7/29/2016
2.6.3 6,577 7/9/2016
2.6.2 9,005 6/13/2016
2.6.0 6,428 6/10/2016
2.5.1 7,073 6/7/2016
2.5.0 8,060 5/24/2016
2.4.3 6,836 5/7/2016
2.4.2 6,720 4/26/2016
2.4.1 6,470 4/16/2016
2.4.0 6,598 4/14/2016
2.3.0 7,201 3/30/2016
2.2.2 7,967 3/10/2016
2.2.1 6,374 3/8/2016
2.2.0 6,695 2/26/2016
2.1.3 7,844 1/17/2016
2.1.2 6,416 1/15/2016
2.1.1 6,671 1/4/2016
2.1.0 6,819 12/4/2015
2.0.2 6,619 12/1/2015
2.0.1 6,387 11/27/2015
2.0.0 7,266 11/19/2015
2.0.0-rc4build353 6,335 11/18/2015
2.0.0-rc4build352 6,310 11/17/2015
2.0.0-rc4build351 6,357 11/17/2015
2.0.0-rc4build350 6,324 11/17/2015
2.0.0-rc4build349 6,352 11/12/2015
2.0.0-rc4build348 6,331 11/12/2015
2.0.0-rc4build347 6,327 11/12/2015
2.0.0-rc4build346 6,299 11/12/2015
2.0.0-rc4build345 6,299 11/12/2015
2.0.0-rc4build344 6,332 11/7/2015
2.0.0-rc4build343 6,334 11/5/2015
2.0.0-rc4build342 6,396 11/1/2015
2.0.0-rc4build341 6,331 10/29/2015
2.0.0-rc4build340 6,307 11/12/2015
2.0.0-rc4build339 6,314 11/7/2015
2.0.0-rc4build338 6,312 11/5/2015
2.0.0-rc4build337 6,306 11/1/2015
2.0.0-rc4build336 6,318 10/29/2015
2.0.0-rc3build340 6,318 10/26/2015
2.0.0-rc3build339 6,320 10/26/2015
2.0.0-rc3build338 6,331 10/23/2015
2.0.0-rc3build337 6,336 10/20/2015
2.0.0-rc3build336 6,352 10/19/2015
2.0.0-rc3build335 6,336 10/12/2015
2.0.0-rc3build334 6,321 10/10/2015
2.0.0-rc3build333 6,328 10/6/2015
2.0.0-rc3build332 6,328 10/6/2015
2.0.0-rc3build331 6,324 10/1/2015
2.0.0-rc3build330 6,321 10/1/2015
2.0.0-rc3build329 6,317 9/30/2015
2.0.0-rc3build328 6,390 9/26/2015
2.0.0-rc3build327 6,318 9/25/2015
2.0.0-rc3build326 6,338 9/25/2015
2.0.0-rc3build325 6,322 9/25/2015
2.0.0-rc3build324 6,363 9/11/2015
2.0.0-rc3build323 6,352 9/11/2015
2.0.0-rc3build322 6,364 9/11/2015
2.0.0-rc3build321 6,322 9/11/2015
2.0.0-rc3build320 6,319 9/11/2015
2.0.0-rc3build319 6,350 9/8/2015
2.0.0-rc3build318 6,343 9/6/2015
2.0.0-rc3build317 6,351 9/3/2015
2.0.0-rc3build316 6,350 9/2/2015
2.0.0-rc3build315 6,343 8/31/2015
2.0.0-rc3build314 6,331 9/8/2015
2.0.0-rc3build313 6,333 8/29/2015
2.0.0-rc3build312 6,359 8/23/2015
2.0.0-rc3build311 6,341 8/21/2015
2.0.0-rc3build310 6,348 8/18/2015
2.0.0-rc3build309 6,326 8/12/2015
2.0.0-rc3build308 6,331 8/6/2015
2.0.0-rc3build307 6,366 8/23/2015
2.0.0-rc3build306 6,332 8/6/2015
2.0.0-rc3build304 6,312 8/4/2015
2.0.0-rc3build303 6,308 8/6/2015
2.0.0-rc3build302 6,341 8/3/2015
2.0.0-rc3build301 6,375 7/31/2015
2.0.0-rc3build300 6,506 7/28/2015
2.0.0-rc3build299 6,319 7/28/2015
2.0.0-rc3build298 6,321 7/28/2015
2.0.0-rc3build297 6,310 7/31/2015
2.0.0-rc3build296 6,309 7/28/2015
2.0.0-rc2build297 6,322 7/26/2015
2.0.0-rc2build296 6,306 7/26/2015
2.0.0-rc2build295 6,326 7/24/2015
2.0.0-rc2build294 6,324 7/24/2015
2.0.0-rc2build293 6,327 7/26/2015
2.0.0-rc2build292 6,370 7/21/2015
2.0.0-rc2build291 6,309 7/24/2015
2.0.0-rc2build289 6,376 7/21/2015
2.0.0-rc1build371 6,317 1/11/2016
2.0.0-rc1build366 6,306 1/11/2016
2.0.0-rc1build288 6,358 7/4/2015
2.0.0-rc1build287 6,336 6/19/2015
2.0.0-rc1build286 6,496 6/8/2015
2.0.0-rc1build285 6,334 6/4/2015
2.0.0-rc1build284 6,324 6/3/2015
2.0.0-rc1build283 6,355 6/1/2015
2.0.0-rc1build282 6,330 5/29/2015
2.0.0-rc1build281 6,315 5/27/2015
2.0.0-rc1build280 6,311 5/27/2015
2.0.0-rc1build279 6,321 5/21/2015
2.0.0-rc1build278 6,333 5/16/2015
2.0.0-rc1build277 6,329 5/15/2015
2.0.0-rc1build276 6,314 5/21/2015
2.0.0-rc1build275 6,307 5/16/2015
2.0.0-rc1build274 6,381 5/15/2015
2.0.0-rc1build273 6,341 5/15/2015
2.0.0-rc1build272 6,329 5/14/2015
2.0.0-rc1build271 6,367 5/14/2015
2.0.0-rc1build270 6,322 5/13/2015
2.0.0-rc1build269 6,327 5/14/2015
2.0.0-rc1build268 6,333 5/12/2015
2.0.0-rc1build267 6,326 5/10/2015
2.0.0-rc1build266 6,324 5/7/2015
2.0.0-rc1build265 6,328 5/6/2015
2.0.0-rc1build264 6,397 5/5/2015
2.0.0-rc1build263 6,315 5/1/2015
2.0.0-rc1build262 6,335 4/30/2015
2.0.0-rc1build261 6,324 4/29/2015
2.0.0-rc1build260 6,391 4/28/2015
2.0.0-rc1build259 6,329 4/21/2015
2.0.0-rc1build258 6,327 4/29/2015
2.0.0-rc1build255 6,345 4/21/2015
2.0.0-preview256 6,350 4/15/2015
2.0.0-preview255 6,354 4/14/2015
2.0.0-preview254 6,347 4/14/2015
2.0.0-preview253 6,344 4/13/2015
2.0.0-preview252 6,335 4/10/2015
2.0.0-preview251 6,347 4/7/2015
2.0.0-preview250 6,348 4/6/2015
2.0.0-preview249 6,548 4/6/2015
2.0.0-preview248 6,347 4/7/2015
2.0.0-preview247 6,350 4/6/2015
2.0.0-preview246 6,344 4/6/2015
2.0.0-preview245 6,344 4/3/2015
2.0.0-preview244 6,332 4/3/2015
2.0.0-preview243 6,346 4/3/2015
2.0.0-preview242 6,360 4/2/2015
2.0.0-preview241 6,344 3/31/2015
2.0.0-preview240 6,353 3/31/2015
2.0.0-preview239 6,382 3/30/2015
2.0.0-preview238 6,340 3/30/2015
2.0.0-preview237 6,337 3/29/2015
2.0.0-preview236 6,347 3/28/2015
2.0.0-preview235 6,355 3/27/2015
2.0.0-preview234 6,342 3/27/2015
2.0.0-preview233 6,341 3/26/2015
2.0.0-preview232 6,335 3/26/2015
2.0.0-preview231 6,363 3/25/2015
2.0.0-preview230 6,358 3/25/2015
2.0.0-preview229 6,358 3/25/2015
2.0.0-preview228 6,348 3/23/2015
2.0.0-preview227 6,366 3/23/2015
2.0.0-preview226 6,340 3/19/2015
2.0.0-preview225 6,342 3/18/2015
2.0.0-preview224 6,333 3/18/2015
2.0.0-preview223 6,347 3/18/2015
2.0.0-preview222 6,344 3/17/2015
2.0.0-preview221 6,349 3/15/2015
2.0.0-preview220 6,339 3/14/2015
2.0.0-preview219 6,336 3/13/2015
2.0.0-preview218 6,350 3/11/2015
2.0.0-preview217 6,350 3/10/2015
2.0.0-preview216 6,385 3/10/2015
2.0.0-preview215 6,354 3/10/2015
2.0.0-preview214 6,354 3/10/2015
2.0.0-preview213 6,334 3/9/2015
2.0.0-preview212 6,333 3/6/2015
2.0.0-preview211 6,344 3/4/2015
2.0.0-preview210 6,338 3/4/2015
2.0.0-preview209 6,349 3/4/2015
2.0.0-preview208 6,339 3/3/2015
2.0.0-preview207 6,345 3/3/2015
2.0.0-preview206 6,353 3/3/2015
2.0.0-preview205 6,349 3/2/2015
2.0.0-preview204 6,353 3/2/2015
2.0.0-preview203 6,510 2/26/2015
2.0.0-preview202 6,351 2/25/2015
2.0.0-preview201 6,374 2/20/2015
2.0.0-preview200 6,473 2/20/2015
2.0.0-preview199 6,363 2/20/2015
2.0.0-preview198 6,354 2/19/2015
2.0.0-preview197 6,350 2/19/2015
2.0.0-preview196 6,354 2/19/2015
2.0.0-preview195 6,364 2/19/2015
2.0.0-preview194 6,400 2/18/2015
2.0.0-preview193 6,364 2/18/2015
2.0.0-preview192 6,431 2/17/2015
2.0.0-preview191 6,422 2/17/2015
2.0.0-preview190 6,447 2/17/2015
2.0.0-preview189 6,345 2/12/2015
2.0.0-preview188 6,360 2/11/2015
2.0.0-preview187 6,459 2/11/2015
2.0.0-preview186 6,498 2/11/2015
2.0.0-preview185 6,372 2/10/2015
2.0.0-preview184 6,355 2/10/2015
2.0.0-preview183 6,355 2/10/2015
2.0.0-preview182 6,385 2/9/2015
2.0.0-preview181 6,361 2/2/2015
2.0.0-preview180 6,360 2/2/2015
2.0.0-preview179 6,351 1/31/2015
2.0.0-preview178 6,349 1/30/2015
2.0.0-preview177 6,358 1/29/2015
2.0.0-preview176 6,403 1/24/2015
2.0.0-preview175 6,359 1/24/2015
2.0.0-preview174 6,425 1/23/2015
2.0.0-preview173 6,412 1/18/2015
2.0.0-preview172 6,349 1/19/2015
2.0.0-preview171 6,431 1/16/2015
2.0.0-preview170 6,358 1/16/2015
2.0.0-preview169 6,376 1/16/2015
2.0.0-preview168 6,358 1/16/2015
2.0.0-preview167 6,420 1/16/2015
2.0.0-preview166 6,354 1/15/2015
2.0.0-preview165 6,395 1/15/2015
2.0.0-preview164 6,360 1/15/2015
2.0.0-preview163 6,395 1/15/2015
2.0.0-preview162 6,400 1/14/2015
2.0.0-preview161 6,345 1/14/2015
2.0.0-preview160 6,345 1/14/2015
2.0.0-preview159 6,360 1/14/2015
2.0.0-preview158 6,367 1/14/2015
2.0.0-preview157 6,350 1/14/2015
2.0.0-preview156 6,357 1/13/2015
2.0.0-preview155 6,362 1/13/2015
2.0.0-preview154 6,428 1/12/2015
2.0.0-preview153 6,360 1/12/2015
2.0.0-preview152 6,362 1/9/2015
2.0.0-preview151 6,361 1/9/2015
2.0.0-preview150 6,360 1/8/2015
2.0.0-preview148 6,381 1/8/2015
2.0.0-preview147 6,361 1/3/2015
2.0.0-preview146 6,383 1/3/2015
2.0.0-preview145 6,420 12/30/2014
2.0.0-preview144 6,386 12/29/2014
2.0.0-preview143 6,408 12/29/2014
2.0.0-preview142 6,387 12/23/2014
2.0.0-preview141 6,358 12/23/2014
2.0.0-preview140 6,385 12/23/2014
2.0.0-preview139 6,440 12/20/2014
2.0.0-preview138 6,358 12/20/2014
2.0.0-preview137 6,366 12/20/2014
2.0.0-preview136 6,380 12/20/2014
2.0.0-preview135 6,350 12/20/2014
2.0.0-preview133 6,431 12/18/2014
2.0.0-preview132 6,395 12/15/2014
2.0.0-preview131 6,384 12/14/2014
2.0.0-preview130 6,356 12/12/2014
2.0.0-preview129 6,381 12/12/2014
2.0.0-preview128 6,362 12/11/2014
2.0.0-preview127 6,381 12/10/2014
2.0.0-preview126 6,380 12/10/2014
2.0.0-preview125 6,373 12/8/2014
2.0.0-preview124 6,385 12/8/2014
2.0.0-preview123 6,369 12/7/2014
2.0.0-preview119 6,481 11/24/2014
2.0.0-preview118 6,449 11/21/2014
2.0.0-preview116 6,775 11/13/2014
2.0.0-preview115 6,600 11/6/2014
2.0.0-preview114 6,803 11/6/2014
2.0.0-preview113 6,587 11/5/2014
2.0.0-preview112 6,587 11/5/2014
2.0.0-preview110 6,824 11/5/2014
2.0.0-preview109 6,837 11/4/2014
2.0.0-preview108 6,691 10/31/2014
2.0.0-preview107 6,910 10/31/2014
2.0.0-preview105 7,002 10/31/2014
2.0.0-preview104 6,364 10/29/2014
2.0.0-preview103 6,362 10/27/2014
2.0.0-preview102 6,378 10/27/2014
2.0.0-preview101 6,372 10/24/2014
2.0.0-beta258 6,345 4/21/2015
2.0.0-beta254 6,389 4/20/2015
1.4.1 9,493 10/9/2014
1.4.0 6,752 9/10/2014
1.3.1 6,541 8/18/2014
1.3.0 6,600 7/16/2014
1.2.2 6,631 7/2/2014
1.2.1 6,426 6/30/2014
1.2.0 6,813 1/9/2014
1.1.1 6,476 12/26/2013
1.1.0 6,412 12/26/2013
1.0.11 6,463 12/24/2013