LightInject icon indicating copy to clipboard operation
LightInject copied to clipboard

CompositionRootTypeExtractor does not handle TypeLoadException

Open kemsky opened this issue 3 years ago • 0 comments

My particular case is related to Telerik reporting components.

Reporting attempts to resolve service IReportServiceConfiguration which leads to CompositionRootTypeExtractor execution, which fails due type load exception. Indeed, some of the types can not be loaded on linux, but it still should be ok.

Is it acceptable to add try/catch and fall back to TypeLoadException.Types?

kemsky avatar Dec 01 '22 20:12 kemsky