예제 #1
0
        public ActionResult UserService()
        {
            var strRel = string.Empty;

            try
            {
                InvokeInfo vkInfo = ReflectionHelper.GetActionInvokeInfo(_FunctionName);
                if (vkInfo == null)
                {
                    strRel = error("请求的方法错误!", "X0008");
                }
                else
                {
                    strRel = (string)ActionExecutor.ExecuteAction(param, vkInfo);
                }
            }
            catch (Exception e)
            {
                strRel = error(_FunctionName, e.Message);
            }
            _Log.AppendLine("返回信息:" + strRel);
            Logger.WirteMessageLog(_Log.ToString());

            var strRel2 = RSAHelper.RSAEncrypt(strRel, param.PublicKey);

            return(Content(strRel2));
        }
예제 #2
0
 public void ProcessRequest(HttpContext context)
 {
     // 调用核心的工具类,执行Action
     ActionExecutor.ExecuteAction(context, this.InvokeInfo);
 }