Closed BinaryCraX closed 2 days ago
@BinaryCraX Hi, I am afraid that there is an error in this part of the documentation. Here is the correct one https://github.com/dadhi/DryIoc/blob/master/docs/DryIoc.Docs/Wrappers.md#func-of-a You may submit a PR or I will fix it myself.
Resolving a service with a circular dependency from the container crashes with ContainerException (Error.RecursiveDependencyDetected) even though a func-wrapper is used. However the same code works when using a lazy-wrapper.
The documentation states that both should work (even though there is no explicit example for the func-wrapper).
Following code crashes:
As a reference, working code using lazy-wrapper:
DryIoc-Version: 5.4.3