コード例 #1
0
        public virtual ComputedOptions?GetComputedOptions(InterceptorBase interceptor, MethodInfo methodInfo)
        {
            var attribute = GetInterceptedMethodAttribute(methodInfo);

            if (attribute == null)
            {
                return(null);
            }
            var swapAttribute = GetSwapAttribute(methodInfo);

            return(ComputedOptions.FromAttribute(attribute, swapAttribute));
        }
コード例 #2
0
        public virtual ComputedOptions?GetComputedOptions(MethodInfo methodInfo)
        {
            var attribute = GetComputeMethodAttribute(methodInfo);

            if (attribute == null)
            {
                return(null);
            }
            var swapAttribute = GetSwapAttribute(methodInfo);

            return(ComputedOptions.FromAttribute(attribute, swapAttribute));
        }