From 7b1de69281b36058168c163f3ca153336253d9ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salim=20=C3=87ET=C4=B0NKAYA?= Date: Thu, 8 Apr 2021 12:57:39 +0300 Subject: [PATCH] =?UTF-8?q?Ayn=C4=B1=20isimde=20iki=20metot=20bulundu?= =?UTF-8?q?=C4=9Fu=20verilen=20hatan=C4=B1n=20=C3=B6nlenmesi=20i=C3=A7in?= =?UTF-8?q?=20metot=20parametrelerine=20g=C3=B6re=20arama=20eklendi.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Core/Utilities/Interceptors/AspectInterceptorSelector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)));