private static ServiceMethodInfo CreateNewMethodInfo <Parent>(MethodInfo method, HttpClient client)
        {
            var methodInfo = new ServiceMethodInfo(typeof(Parent).GetCustomAttributes(), method.GetCustomAttributes(), client);

            methodInfo.parameters = method.GetParameters();
            return(methodInfo);
        }
Exemplo n.º 2
0
            protected override object Invoke(MethodInfo targetMethod, object[] args)
            {
                var serviceMethodInfo = ServiceMethodInfo.CreateOrAdd <Target>(targetMethod, args, Client);

                return(serviceMethodInfo.Execute());
            }