AOP02.Core.CacheInterceptor.getCacheMethodAttribute C# (CSharp) 메소드

getCacheMethodAttribute() 개인적인 정적인 메소드

private static getCacheMethodAttribute ( IInvocation invocation ) : Attribute
invocation IInvocation
리턴 System.Attribute
        private static Attribute getCacheMethodAttribute(IInvocation invocation)
        {
            var methodInfo = invocation.MethodInvocationTarget;
            if (methodInfo == null)
            {
                methodInfo = invocation.Method;
            }
            return Attribute.GetCustomAttribute(methodInfo, typeof(CacheMethodAttribute), true);
        }