Beispiel #1
0
        public static bool IsMatch <T, TResult>(this IConfiguredMethod <T> method, Expression <Func <T, TResult> > expression) where T : class
        {
            var request = ProxyRequest <T> .FromExpression(expression);

            return(method.IsMatch(request.Method, request.Parameters));
        }
Beispiel #2
0
        private static bool IsMatch <T, TResult>(IConfiguredMethod <T> configuredMethod, Expression <Func <T, TResult> > expression) where T : class
        {
            var proxyContext = ProxyRequest <T> .FromExpression(expression);

            return(configuredMethod.IsMatch(proxyContext.Method, proxyContext.Parameters));
        }