Skip to content

Commit

Permalink
Update TypeSourceSelector.cs
Browse files Browse the repository at this point in the history
dotnet/SqlClient#1930

> I had the same issue here. After changing to GetExportedTypes() seems to fix the issue
  • Loading branch information
peterhel committed Sep 13, 2024
1 parent 28c9d1d commit 3ec0712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scrutor/TypeSourceSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private IImplementationTypeSelector InternalFromAssembliesOf(IEnumerable<Type> t

private IImplementationTypeSelector InternalFromAssemblies(IEnumerable<Assembly> assemblies)
{
return AddSelector(assemblies.SelectMany(asm => asm.DefinedTypes).Select(x => x.AsType()));
return AddSelector(assemblies.SelectMany(asm => asm.ExportedTypes);
}

private static IEnumerable<Assembly> LoadAssemblies(IEnumerable<AssemblyName> assemblyNames)
Expand Down

0 comments on commit 3ec0712

Please sign in to comment.