Skip to content

Commit

Permalink
feat(keyed services): fixed keyed services issue with dotnet 8
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifenglee-aelf committed Nov 26, 2024
1 parent a390b4d commit e29cbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AElf.ExceptionHandler.ABP/AOPExceptionModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()));

Check warning on line 25 in AElf.ExceptionHandler.ABP/AOPExceptionModule.cs

View workflow job for this annotation

GitHub Actions / publish

Possible null reference argument for parameter 'type' in 'bool AOPExceptionModule.ShouldIntercept(Type type)'.
}

private static void RegisterExceptionHandlerIfNeeded(IOnServiceRegistredContext context)
Expand Down

0 comments on commit e29cbf0

Please sign in to comment.