Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Diagnostics for DI registered components #27

Open
kdx-perbol opened this issue Jan 14, 2022 · 1 comment
Open

Suggestion: Diagnostics for DI registered components #27

kdx-perbol opened this issue Jan 14, 2022 · 1 comment

Comments

@kdx-perbol
Copy link

kdx-perbol commented Jan 14, 2022

Suggestion: Diagnostics for DI registered components. For example,

public class MyComposer : IUserComposer     {
        public void Compose(Composition composition)        {
            composition.RegisterUnique<IMyService, MyService>();
            composition.Components().Append<MyComponent>();         }    }

It would be nice to see the run-time values for IMyService (i.e. MyService) and a list that contains MyComponent. Especially when overriding Umbraco services/components and using ComposeAfter etc.

It feels like Types and/Or Diagnostics in GodMode almost already does this. :)

@DanDiplo
Copy link
Owner

Cool, that's a good idea! You can kinda do this already using the interface browser (in Types) but you need to navigate to the assembly that contains your services and then locate IMyService in the Interface dropdown. But having it more accessible would make sense. Will look into this for the next release (won't be for a while, as I need more good ideas first :p)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants