AutoDI icon indicating copy to clipboard operation
AutoDI copied to clipboard

When a service fails to resolve, provide the full path to the location.

Open KennethWhite opened this issue 5 years ago • 2 comments

Currently you can register a delegate to fire when AutoDI fails to resolve a service type. It would be useful if in addition to reporting the type that failed to resolve it also gave the location where the attempted dependency resolution occurs.

KennethWhite avatar Jun 18 '19 14:06 KennethWhite

@KennethWhite do you recall when "gave the location" means? Was looking at implementing this but can't recall the specifics of the issue we ran into.

Keboo avatar Sep 14 '19 20:09 Keboo

@KennethWhite do you recall when "gave the location" means? Was looking at implementing this but can't recall the specifics of the issue we ran into.

It was an issue where a particular object could not be constructed but the stack track doesnt include the location of the CTOR to see what dependency isnt registered if I recall correctly.

KennethWhite avatar Sep 24 '19 19:09 KennethWhite