You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binding Discovery: Wrap calls to .GetCustomAttributes in try/catch (#1006)
* Wrap calls to .GetCustomAttributes in try/catch in order to resiliently handle loading errors while reflecting during binding discovery.
* Add comment about the error handling way
Handle exceptions during type attribute loading and return false to prevent further error reporting.
* Update CHANGELOG
Added improvement to binding discovery and updated contributors.
---------
Co-authored-by: Gáspár Nagy <gaspar.nagy@gmail.com>
_bindingSourceProcessor.RegisterTypeLoadError($"Could not load attributes for method '{methodDefinition.DeclaringType?.FullName}.{methodDefinition.Name}': {ex}");
0 commit comments