Exemplo n.º 1
0
        public XResponse Excute(ApiRequest request, string param)
        {
            initializeHeaderData(request);
            var result = XRunner.Api(request.ServiceName, request.MethodName, param, XContext.Current.Token);

            return(result);
        }
Exemplo n.º 2
0
        private XResponse actionExcute(IRequest request)
        {
            var serviceName = getServiceName(request, 1);
            var methodName  = getServiceName(request, 2);
            var param       = getRequestBody(request);
            var token       = getRequestToken(request, XHeader.TOKEN);

            return(XRunner.Api(serviceName, methodName, param, token));
        }
Exemplo n.º 3
0
 public string run(string typeName, string methodName, string param, string token)
 {
     return(XRunner.Api(typeName, methodName, param, token).ToJsResponse());
 }