AOP02.Core.CacheInterceptor.getCacheMethodAttribute C# (CSharp) Méthode

getCacheMethodAttribute() private static méthode

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