You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And finally try to resolve IService5 (the outermost interface) from the child container:
varservice5= child.Resolve<IService5>();
I get an exception with the following:
TinyIoC.TinyIoCResolutionException: Unable to resolve type: IService5 --->
TinyIoC.TinyIoCResolutionException: Unable to resolve type: Service5 --->
TinyIoC.TinyIoCResolutionException: Unable to resolve type: Service5
Having stepped through this with the debugger, it seems to change context from the child container to the parent container when trying to resolve IService4, then it no longer has access to the concrete instance of IService3.
The text was updated successfully, but these errors were encountered:
Sorry it's taken a while to get to this :-) Not sure if I've already fixed this (I know I did some tweaks to the nested container bits for Nancy), but I've just pulled in your updated test classes and test method and it passes fine in the latest version (or "Works On My Maching" anyway :))
I have something like:
I register Service2, Service4 and Service5 in my main container:
Then I add an instance of Service3 (the innermost dependency) to a child container:
And finally try to resolve IService5 (the outermost interface) from the child container:
I get an exception with the following:
Having stepped through this with the debugger, it seems to change context from the child container to the parent container when trying to resolve IService4, then it no longer has access to the concrete instance of IService3.
The text was updated successfully, but these errors were encountered: