Skip to content

2.5.9

Choose a tag to compare

@NikolayPianikov NikolayPianikov released this 21 Nov 12:45
· 17 commits to master since this release

Fix for delegate arguments in dependency cycles

Pure.DI 2.5.8 could generate a reference to a delegate argument outside the lambda that supplied it, causing C# compiler error CS0103. This happened when a dependency in a cycle was also reachable directly from a composition root. #204

The generator now resolves the dependency using the values available on each path. A path through the delegate can use its argument. A path that bypasses the delegate uses an available binding or reports DIE000 if the dependency cannot be resolved.

Full Changelog: 2.5.8...2.5.9