Skip to content

Conversation

@jerbri
Copy link

@jerbri jerbri commented Oct 9, 2017

GetTypes() will attempt to load all dependencies of the currently loaded assemblies when searching for Metadata Modules. This caused some of my larger projects to fail to load as some of the dependencies are not required for it to run.

Using the SafeGetTypes() adds necessary type load exception handling which I believe to be preferable in this scenario.

https://github.com/NancyFx/Nancy/blob/master/src/Nancy/TinyIoc/TinyIoC.cs#L328

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

Successfully merging this pull request may close these issues.

1 participant