container icon indicating copy to clipboard operation
container copied to clipboard

RegisterFactory passes parent container in delegate/factory

Open dcomartin opened this issue 5 years ago • 2 comments

Repro: https://gist.github.com/dcomartin/a631b002ce761ac5d64d77ab38c705e8

This is also the case with using the RegisterType with the obsolete InjectionFactory. However, this is a change of behavior because InjectionFactory used to give you the container/child that was doing the resolution of the outer type. I've confirmed that was the behavior back in at least version 5.8.13.

dcomartin avatar Aug 20 '20 19:08 dcomartin

This behavior is a side effect of scope handling in child containers.

ENikS avatar Sep 29 '20 19:09 ENikS

Encountering this behavior in v5.11.10

arman-microsoft avatar Sep 01 '21 19:09 arman-microsoft