Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Nancy.OpenApi/Infrastructure/RouteMetadataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static Type GetModuleMetadataType(INancyModule module)
if (ModuleTypes.TryGetValue(metadataName, out type)) return type;

type = AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(x => x.GetTypes())
.SelectMany(x => x.SafeGetTypes())
.FirstOrDefault(x => x.Name == metadataName);

ModuleTypes.Add(metadataName, type);
Expand All @@ -57,4 +57,4 @@ private static Type GetModuleMetadataType(INancyModule module)
private static readonly Dictionary<Type, ModuleMetadata> MetadataItems = new Dictionary<Type, ModuleMetadata>();
private readonly TinyIoCContainer _container;
}
}
}