diff --git a/src/Scrutor/ImplementationTypeSelector.cs b/src/Scrutor/ImplementationTypeSelector.cs index 0db4cf1d..1f37efce 100644 --- a/src/Scrutor/ImplementationTypeSelector.cs +++ b/src/Scrutor/ImplementationTypeSelector.cs @@ -35,7 +35,7 @@ public IServiceTypeSelector AddClasses(bool publicOnly) public IServiceTypeSelector AddClasses(Action action) { - return AddClasses(action, publicOnly: false); + return AddClasses(action, publicOnly: true); } public IServiceTypeSelector AddClasses(Action action, bool publicOnly)