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
{{ message }}
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.
foreach (Assembly assembly in allAssm)
{
foreach (TypeInfo ti in assembly.DefinedTypes)
{
SwaggeratedAttribute da = ti.GetCustomAttribute<SwaggeratedAttribute>();
if (da != null && da.LocalPath == servicePath)
{
return ti.AsType();
}
}
}
While looping through all assemblies in my local domain one of them happens to have a count of 0 TypeInfo in it's DefinedTypes (I believe that was the problem, otherwise the DefinedTypes property of that assembly is just in a weird state). This ends up crashing the Discoverator. Before "foreach (TypeInfo ti in assembly.DefinedTypes)" there should be some kind of check to see if it'll be possible to loop over the DefinedTypes.
The text was updated successfully, but these errors were encountered:
The problem is here:
While looping through all assemblies in my local domain one of them happens to have a count of 0 TypeInfo in it's DefinedTypes (I believe that was the problem, otherwise the DefinedTypes property of that assembly is just in a weird state). This ends up crashing the Discoverator. Before "foreach (TypeInfo ti in assembly.DefinedTypes)" there should be some kind of check to see if it'll be possible to loop over the DefinedTypes.
The text was updated successfully, but these errors were encountered: