Can I inspect a scope for all the dependencies resolved in the scope? #659
Unanswered
RLittlesII
asked this question in
Q&A
Replies: 2 comments
-
Another way to word this is, how can I discover everything that the container constructed inside a given scope? public record Foo(Bar bar, IResolverContext context);
public class Bar(Bazz bazz);
public class Bazz(Fizz fizz);
public class Fizz(Buzz buzz);
public class Buzz();
// a few moments later
var foo = resolverContext.Resolve<Foo>();
foo.context.PrintThingsInScope();
// Foo, Bar, Bazz, Fizz, Buzz |
Beta Was this translation helpful? Give feedback.
0 replies
-
HI @RLittlesII
Could you provide the complete registration and resolution example for the Foo service you've mentioned? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an application that uses scoping. We are trying to verify what is actually resolved from a given scope to better manage our scoping concerns.
Beta Was this translation helpful? Give feedback.
All reactions