From 0b1d21639f73ac84659a8d2b47f10b8ba95a02db Mon Sep 17 00:00:00 2001 From: AntonyNET Date: Sat, 9 Nov 2024 19:33:03 +0500 Subject: [PATCH] fix AddClasses registration error --- src/Scrutor/ImplementationTypeSelector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)