Replies: 1 comment 4 replies
-
I've discovered a possible cause: IPttClient -> Func<CallInfo, SessionInfo> -> IPttService -> IPttClient This wasn't a problem for our existing IoC because of the following:
Is it possible that this is what is causing my issue, If so how would you work around it? Is it possible to delay the resolution of IPttService until the func is called? Func<CallInfo, SessionInfo> is defined as a Factory
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm getting an error:
Error while resolving dependencies for 'Pttox.Core.Services.ILinkHandler: 'Pttox.COre.Services.IPttClient' has a circular dependency.
Original I was trying to find a loop including ILinkHandler and IPttClient, but LinkHandler is only used by one thing and there is no loop. So I'm guess that ILinkHandler isn't part of the loop and that it is mentioned in the error only because it has a dependency on IPttClient.
Unfortunately IPttClient has a lot of dependencies and finding the loop is very hard (also our old IoC worked, without complaining about a loop)
Is there a way to get StringInject to print the dependency chain for the loop, so that I can debug this issue?
Beta Was this translation helpful? Give feedback.
All reactions