AOP02.Core.CacheInterceptor.getCacheMethodAttribute C# (CSharp) Method

getCacheMethodAttribute() private static method

private static getCacheMethodAttribute ( IInvocation invocation ) : Attribute
invocation IInvocation
return 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);
        }