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)