From e29cbf0d2ddd9522348279dc236721df1c11cf25 Mon Sep 17 00:00:00 2001 From: zhifenglee-aelf Date: Tue, 26 Nov 2024 12:57:37 +0800 Subject: [PATCH] feat(keyed services): fixed keyed services issue with dotnet 8 --- AElf.ExceptionHandler.ABP/AOPExceptionModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AElf.ExceptionHandler.ABP/AOPExceptionModule.cs b/AElf.ExceptionHandler.ABP/AOPExceptionModule.cs index 73b43eb..bf05ab2 100644 --- a/AElf.ExceptionHandler.ABP/AOPExceptionModule.cs +++ b/AElf.ExceptionHandler.ABP/AOPExceptionModule.cs @@ -22,7 +22,7 @@ public override void PostConfigureServices(ServiceConfigurationContext context) base.PostConfigureServices(context); context.Services.OnRegistered(RegisterExceptionHandlerIfNeeded); //remove all services that are satisfies ShouldIntercept. To be registered again later. - AElfExceptionHandlerHostBuilderExtensions.ExceptionHandlerServices = context.Services.RemoveAll(s => s.ImplementationType != null && ShouldIntercept(s.ImplementationType)); + AElfExceptionHandlerHostBuilderExtensions.ExceptionHandlerServices = context.Services.RemoveAll(s => s.NormalizedImplementationType() != null && ShouldIntercept(s.NormalizedImplementationType())); } private static void RegisterExceptionHandlerIfNeeded(IOnServiceRegistredContext context)