LightInject
LightInject copied to clipboard
CompositionRootTypeExtractor does not handle TypeLoadException
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?