From 4422d28b71c944d9a68dc4b120171e939ab33fef Mon Sep 17 00:00:00 2001 From: zhifenglee-aelf Date: Wed, 6 Nov 2024 16:41:37 +0800 Subject: [PATCH] fix(class): fixed class to not register again --- AElf.ExceptionHandler.ABP/AutofacRegistration.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AElf.ExceptionHandler.ABP/AutofacRegistration.cs b/AElf.ExceptionHandler.ABP/AutofacRegistration.cs index be98e1c..f72794a 100644 --- a/AElf.ExceptionHandler.ABP/AutofacRegistration.cs +++ b/AElf.ExceptionHandler.ABP/AutofacRegistration.cs @@ -317,6 +317,12 @@ public static void Register( { continue; } + + // Class type are already registered properly and can be ignored + if (descriptor.ServiceType.IsClass) + { + continue; + } } if (implementationType != null)