diff --git a/Core/Utilities/Interceptors/AspectInterceptorSelector.cs b/Core/Utilities/Interceptors/AspectInterceptorSelector.cs index 23c7c87..c836d1e 100644 --- a/Core/Utilities/Interceptors/AspectInterceptorSelector.cs +++ b/Core/Utilities/Interceptors/AspectInterceptorSelector.cs @@ -15,8 +15,8 @@ public IInterceptor[] SelectInterceptors(Type type, MethodInfo method, IIntercep { var classAttributes = type.GetCustomAttributes (true).ToList(); - var methodAttributes = type.GetMethod(method.Name) - .GetCustomAttributes(true); + var methodAttributes = type.GetMethod(method.Name, method.GetParameters().Select(p => p.ParameterType).ToArray()).GetCustomAttributes(true); + classAttributes.AddRange(methodAttributes); classAttributes.Add(new ExceptionLogAspect(typeof(FileLogger)));