Umbraco.GodMode icon indicating copy to clipboard operation
Umbraco.GodMode copied to clipboard

Suggestion: Diagnostics for DI registered components

Open kdx-perbol opened this issue 4 years ago • 1 comments

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. :)

kdx-perbol avatar Jan 14 '22 09:01 kdx-perbol

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)

DanDiplo avatar Jan 16 '22 20:01 DanDiplo