Skip to content

Commit

Permalink
AddClasses method registers only public classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszprasolek authored and khellang committed Jan 14, 2025
1 parent de6ed9c commit f60a2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scrutor/ImplementationTypeSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public IServiceTypeSelector AddClasses(bool publicOnly)

public IServiceTypeSelector AddClasses(Action<IImplementationTypeFilter> action)
{
return AddClasses(action, publicOnly: false);
return AddClasses(action, publicOnly: true);
}

public IServiceTypeSelector AddClasses(Action<IImplementationTypeFilter> action, bool publicOnly)
Expand Down

0 comments on commit f60a2f9

Please sign in to comment.